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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/linden/indra/newview/lldynamictexture.cpp b/linden/indra/newview/lldynamictexture.cpp
index f77187d..a724d88 100644
--- a/linden/indra/newview/lldynamictexture.cpp
+++ b/linden/indra/newview/lldynamictexture.cpp
@@ -42,8 +42,6 @@
42#include "llviewerdisplay.h" 42#include "llviewerdisplay.h"
43#include "llrender.h" 43#include "llrender.h"
44 44
45void render_ui_and_swap_if_needed();
46
47// static 45// static
48LLDynamicTexture::instance_list_t LLDynamicTexture::sInstances[ LLDynamicTexture::ORDER_COUNT ]; 46LLDynamicTexture::instance_list_t LLDynamicTexture::sInstances[ LLDynamicTexture::ORDER_COUNT ];
49S32 LLDynamicTexture::sNumRenders = 0; 47S32 LLDynamicTexture::sNumRenders = 0;
@@ -219,9 +217,8 @@ BOOL LLDynamicTexture::updateAllInstances()
219 LLDynamicTexture *dynamicTexture = *iter; 217 LLDynamicTexture *dynamicTexture = *iter;
220 if (dynamicTexture->needsRender()) 218 if (dynamicTexture->needsRender())
221 { 219 {
222 render_ui_and_swap_if_needed();
223 glClear(GL_DEPTH_BUFFER_BIT); 220 glClear(GL_DEPTH_BUFFER_BIT);
224 gDisplaySwapBuffers = FALSE; 221 gDepthDirty = TRUE;
225 222
226 223
227 gGL.color4f(1,1,1,1); 224 gGL.color4f(1,1,1,1);