diff options
author | Jacek Antonelli | 2008-08-15 23:45:49 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:49 -0500 |
commit | 8538c0f35dc5fb780f02930256e627e5266ede4a (patch) | |
tree | 58950646aae6534fafe680a5cf879d01cd99d254 /linden/indra/newview/lldynamictexture.cpp | |
parent | Second Life viewer sources 1.20.5 (diff) | |
download | meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.zip meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.gz meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.bz2 meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.xz |
Second Life viewer sources 1.20.6
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 | } |