diff options
| author | Christian Goetze <cg@lindenlab.com> | 2007-08-21 22:17:53 +0000 |
|---|---|---|
| committer | Christian Goetze <cg@lindenlab.com> | 2007-08-21 22:17:53 +0000 |
| commit | ce0a5fe14590b8d675b885fccd5f79d7ea17a302 (patch) | |
| tree | 3388e6f8ff02292ec4521d278c841801462945b8 /indra/newview/lldynamictexture.cpp | |
| parent | b699ae454d8477d19342d320758cd993d1d28cec (diff) | |
EFFECTIVE MERGE: svn merge -r 66133:68118 svn+ssh://svn/svn/linden/branches/maintenance into release
Actual action: branched maintenance-r68118, merged in release, then copied result into release
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
| -rw-r--r-- | indra/newview/lldynamictexture.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp index f3821a8b7a..93ff7e430c 100644 --- a/indra/newview/lldynamictexture.cpp +++ b/indra/newview/lldynamictexture.cpp @@ -185,8 +185,6 @@ BOOL LLDynamicTexture::updateAllInstances() return TRUE; } - BOOL started = FALSE; - BOOL result = FALSE; for( S32 order = 0; order < ORDER_COUNT; order++ ) { @@ -195,29 +193,22 @@ BOOL LLDynamicTexture::updateAllInstances() dynamicTexture = LLDynamicTexture::sInstances[order].getNextData()) { if (dynamicTexture->needsRender()) - { - if (!started) - { - started = TRUE; - LLVertexBuffer::startRender(); - } - - dynamicTexture->preRender(); + { + dynamicTexture->preRender(); // Must be called outside of startRender() + + LLVertexBuffer::startRender(); if (dynamicTexture->render()) { result = TRUE; sNumRenders++; } + LLVertexBuffer::stopRender(); + dynamicTexture->postRender(result); } } } - if (started) - { - LLVertexBuffer::stopRender(); - } - return result; } |
