summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-14 16:57:42 -0500
committerDave Parks <davep@lindenlab.com>2011-09-14 16:57:42 -0500
commit4e006b0e3891d5728a6753059f2c5afc77737482 (patch)
tree96af37ac252d823f8dc51e20546848ad464e0274 /indra/newview/lldynamictexture.cpp
parent758b936deaa0e6ea397c49afa5024315415eeb93 (diff)
parentc0ca2c62fd6b9a90542907ce46bf1fe0ab379e13 (diff)
merge
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
-rw-r--r--indra/newview/lldynamictexture.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp
index fb9958ee9d..6f9ff6c210 100644
--- a/indra/newview/lldynamictexture.cpp
+++ b/indra/newview/lldynamictexture.cpp
@@ -41,6 +41,7 @@
#include "llviewerdisplay.h"
#include "llrender.h"
#include "pipeline.h"
+#include "llglslshader.h"
// static
LLViewerDynamicTexture::instance_list_t LLViewerDynamicTexture::sInstances[ LLViewerDynamicTexture::ORDER_COUNT ];
@@ -207,6 +208,12 @@ BOOL LLViewerDynamicTexture::updateAllInstances()
return TRUE;
}
+ 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++ )
@@ -237,6 +244,8 @@ BOOL LLViewerDynamicTexture::updateAllInstances()
}
}
+ LLGLSLShader::sNoFixedFunction = no_ff;
+
return ret;
}