summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2007-03-02 21:25:50 +0000
committerSteven Bennetts <steve@lindenlab.com>2007-03-02 21:25:50 +0000
commit4dabd9c0472deb49573fdafef2fa413e59703f19 (patch)
tree06c680d6a2047e03838d6548bccd26c7baf9d652 /indra/newview/lldynamictexture.cpp
parentd4462963c6ba5db2088723bbedc7b60f1184c594 (diff)
merge release@58699 beta-1-14-0@58707 -> release
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
-rw-r--r--indra/newview/lldynamictexture.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp
index 0f0a9d9bda..f2981625f7 100644
--- a/indra/newview/lldynamictexture.cpp
+++ b/indra/newview/lldynamictexture.cpp
@@ -16,6 +16,8 @@
#include "llviewercamera.h"
#include "llviewercontrol.h"
#include "llviewerimage.h"
+#include "llvertexbuffer.h"
+
// static
LLLinkedList<LLDynamicTexture> LLDynamicTexture::sInstances[ LLDynamicTexture::ORDER_COUNT ];
@@ -174,6 +176,8 @@ BOOL LLDynamicTexture::updateAllInstances()
return TRUE;
}
+ BOOL started = FALSE;
+
BOOL result = FALSE;
for( S32 order = 0; order < ORDER_COUNT; order++ )
{
@@ -183,6 +187,12 @@ BOOL LLDynamicTexture::updateAllInstances()
{
if (dynamicTexture->needsRender())
{
+ if (!started)
+ {
+ started = TRUE;
+ LLVertexBuffer::startRender();
+ }
+
dynamicTexture->preRender();
if (dynamicTexture->render())
{
@@ -194,6 +204,11 @@ BOOL LLDynamicTexture::updateAllInstances()
}
}
+ if (started)
+ {
+ LLVertexBuffer::stopRender();
+ }
+
return result;
}