summaryrefslogtreecommitdiff
path: root/indra/newview/lltexlayer.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-08-21 16:23:50 -0500
committerDave Parks <davep@lindenlab.com>2011-08-21 16:23:50 -0500
commit90ebaeef9b629cb63e7a94a526478f2e340ff439 (patch)
tree14f61c7fc6c2c41cace22a9582075d54ad8181bc /indra/newview/lltexlayer.cpp
parent63c420d8ddb7cc738877d2771b1c3b8972a4de09 (diff)
parentee4fdd2c18c722164d78a7305777fad6e49cba8b (diff)
merge
Diffstat (limited to 'indra/newview/lltexlayer.cpp')
-rw-r--r--indra/newview/lltexlayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/lltexlayer.cpp b/indra/newview/lltexlayer.cpp
index e8abee2fb7..87e7a57ae8 100644
--- a/indra/newview/lltexlayer.cpp
+++ b/indra/newview/lltexlayer.cpp
@@ -295,6 +295,8 @@ BOOL LLTexLayerSetBuffer::render()
BOOL success = TRUE;
+ LLVertexBuffer::unbind();
+
//hack to use fixed function when updating tex layer sets
bool no_ff = LLGLSLShader::sNoFixedFunction;
LLGLSLShader::sNoFixedFunction = false;
@@ -304,6 +306,7 @@ BOOL LLTexLayerSetBuffer::render()
success &= mTexLayerSet->render( mOrigin.mX, mOrigin.mY, mFullWidth, mFullHeight );
gGL.flush();
+ LLVertexBuffer::unbind();
LLGLSLShader::sNoFixedFunction = no_ff;
if(upload_now)