aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldynamictexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lldynamictexture.cpp')
-rw-r--r--linden/indra/newview/lldynamictexture.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/linden/indra/newview/lldynamictexture.cpp b/linden/indra/newview/lldynamictexture.cpp
index 14b80d6..6bcf140 100644
--- a/linden/indra/newview/lldynamictexture.cpp
+++ b/linden/indra/newview/lldynamictexture.cpp
@@ -223,17 +223,15 @@ BOOL LLDynamicTexture::updateAllInstances()
223 glClear(GL_DEPTH_BUFFER_BIT); 223 glClear(GL_DEPTH_BUFFER_BIT);
224 gDisplaySwapBuffers = FALSE; 224 gDisplaySwapBuffers = FALSE;
225 225
226 LLVertexBuffer::startRender();
227 gGL.start();
228
229 dynamicTexture->preRender(); // Must be called outside of startRender() 226 dynamicTexture->preRender(); // Must be called outside of startRender()
230 227
228 LLVertexBuffer::startRender();
229
231 if (dynamicTexture->render()) 230 if (dynamicTexture->render())
232 { 231 {
233 result = TRUE; 232 result = TRUE;
234 sNumRenders++; 233 sNumRenders++;
235 } 234 }
236 gGL.stop();
237 LLVertexBuffer::stopRender(); 235 LLVertexBuffer::stopRender();
238 236
239 dynamicTexture->postRender(result); 237 dynamicTexture->postRender(result);