summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-10-06 15:00:14 -0500
committerDave Parks <davep@lindenlab.com>2011-10-06 15:00:14 -0500
commit40fe25632c62ab6a8bbb817149c159295b365d59 (patch)
tree90d5930ba7abb4c6893074082624667eeb7d82da /indra/llrender/llrender.cpp
parente76eaa8b2a1f49e45d009379aaf36f8e62b6273a (diff)
SH-2553 Fix for glitches when rendering HUD attachments.
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r--indra/llrender/llrender.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index bbdd0a7a60..942ad87566 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -1347,6 +1347,7 @@ void LLRender::popMatrix()
void LLRender::loadMatrix(const GLfloat* m)
{
+ flush();
mMatrix[mMatrixMode][mMatIdx[mMatrixMode]].set_value((GLfloat*) m);
mMatHash[mMatrixMode]++;
}
@@ -1396,6 +1397,8 @@ void LLRender::multMatrix(const GLdouble* dm)
void LLRender::loadIdentity()
{
+ flush();
+
mMatrix[mMatrixMode][mMatIdx[mMatrixMode]].make_identity();
mMatHash[mMatrixMode]++;
}