summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
-rw-r--r--indra/newview/lldynamictexture.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp
index cdb7531341..7b88349ef4 100644
--- a/indra/newview/lldynamictexture.cpp
+++ b/indra/newview/lldynamictexture.cpp
@@ -223,17 +223,18 @@ BOOL LLDynamicTexture::updateAllInstances()
glClear(GL_DEPTH_BUFFER_BIT);
gDisplaySwapBuffers = FALSE;
+
+ gGL.color4f(1,1,1,1);
dynamicTexture->preRender(); // Must be called outside of startRender()
- LLVertexBuffer::startRender();
-
if (dynamicTexture->render())
{
result = TRUE;
sNumRenders++;
}
- LLVertexBuffer::stopRender();
-
+ gGL.flush();
+ LLVertexBuffer::unbind();
+
dynamicTexture->postRender(result);
}
}