summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-08-27 00:48:14 -0500
committerDave Parks <davep@lindenlab.com>2011-08-27 00:48:14 -0500
commitc8b8b153f14b65fa7d833d787df6c03539eb85a8 (patch)
treeffc3c28a4c1f03d8204b5f4efdefa081a0dd3969 /indra/newview/lldynamictexture.cpp
parent7821ff23baafff4e7712a126c17c3947e7b4989e (diff)
SH-2242 Don't make LLDynamicTexture targets use shaders all the time (revisit later).
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
-rw-r--r--indra/newview/lldynamictexture.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp
index 4955b6224e..f9a213a86f 100644
--- a/indra/newview/lldynamictexture.cpp
+++ b/indra/newview/lldynamictexture.cpp
@@ -210,6 +210,9 @@ BOOL LLViewerDynamicTexture::updateAllInstances()
LLGLSLShader::bindNoShader();
LLVertexBuffer::unbind();
+ bool no_ff = LLGLSLShader::sNoFixedFunction;
+ LLGLSLShader::sNoFixedFunction = false;
+
BOOL result = FALSE;
BOOL ret = FALSE ;
for( S32 order = 0; order < ORDER_COUNT; order++ )
@@ -240,6 +243,8 @@ BOOL LLViewerDynamicTexture::updateAllInstances()
}
}
+ LLGLSLShader::sNoFixedFunction = no_ff;
+
return ret;
}