diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp index ff9b28bc372a894d1addc824cf847370d356eac2..a27621ecdce50d926694dffe4f1c94f1de5c8ac4 100755 --- a/indra/newview/llviewershadermgr.cpp +++ b/indra/newview/llviewershadermgr.cpp @@ -50,7 +50,7 @@ #define SINGLE_FP_PERMUTATION(shader) \ if (gGLManager.mIsMobileGF) \ { \ - shader[i].addPermutation("SINGLE_FP_ONLY","1"); \ + shader.addPermutation("SINGLE_FP_ONLY","1"); \ } @@ -1304,7 +1304,7 @@ BOOL LLViewerShaderMgr::loadShadersDeferred() bool has_skin = i & 0x10; gDeferredMaterialProgram[i].addPermutation("HAS_SKIN",has_skin ? "1" : "0"); - SINGLE_FP_PERMUTATION(gDeferredMaterialProgram); + SINGLE_FP_PERMUTATION(gDeferredMaterialProgram[i]); if (has_skin) {