diff options
Diffstat (limited to 'linden/indra/newview/lldynamictexture.cpp')
-rw-r--r-- | linden/indra/newview/lldynamictexture.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/lldynamictexture.cpp b/linden/indra/newview/lldynamictexture.cpp index 6bcf140..ce7f1ec 100644 --- a/linden/indra/newview/lldynamictexture.cpp +++ b/linden/indra/newview/lldynamictexture.cpp | |||
@@ -223,17 +223,18 @@ BOOL LLDynamicTexture::updateAllInstances() | |||
223 | glClear(GL_DEPTH_BUFFER_BIT); | 223 | glClear(GL_DEPTH_BUFFER_BIT); |
224 | gDisplaySwapBuffers = FALSE; | 224 | gDisplaySwapBuffers = FALSE; |
225 | 225 | ||
226 | |||
227 | gGL.color4f(1,1,1,1); | ||
226 | dynamicTexture->preRender(); // Must be called outside of startRender() | 228 | dynamicTexture->preRender(); // Must be called outside of startRender() |
227 | 229 | ||
228 | LLVertexBuffer::startRender(); | ||
229 | |||
230 | if (dynamicTexture->render()) | 230 | if (dynamicTexture->render()) |
231 | { | 231 | { |
232 | result = TRUE; | 232 | result = TRUE; |
233 | sNumRenders++; | 233 | sNumRenders++; |
234 | } | 234 | } |
235 | LLVertexBuffer::stopRender(); | 235 | gGL.flush(); |
236 | 236 | LLVertexBuffer::unbind(); | |
237 | |||
237 | dynamicTexture->postRender(result); | 238 | dynamicTexture->postRender(result); |
238 | } | 239 | } |
239 | } | 240 | } |