diff options
author | Steven Bennetts <steve@lindenlab.com> | 2007-03-02 21:25:50 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2007-03-02 21:25:50 +0000 |
commit | 4dabd9c0472deb49573fdafef2fa413e59703f19 (patch) | |
tree | 06c680d6a2047e03838d6548bccd26c7baf9d652 /indra/newview/lldynamictexture.cpp | |
parent | d4462963c6ba5db2088723bbedc7b60f1184c594 (diff) |
merge release@58699 beta-1-14-0@58707 -> release
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
-rw-r--r-- | indra/newview/lldynamictexture.cpp | 15 |
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; } |