diff options
author | Dave Parks <davep@lindenlab.com> | 2011-10-06 15:00:14 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-10-06 15:00:14 -0500 |
commit | 40fe25632c62ab6a8bbb817149c159295b365d59 (patch) | |
tree | 90d5930ba7abb4c6893074082624667eeb7d82da /indra/llrender/llrender.cpp | |
parent | e76eaa8b2a1f49e45d009379aaf36f8e62b6273a (diff) |
SH-2553 Fix for glitches when rendering HUD attachments.
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r-- | indra/llrender/llrender.cpp | 3 |
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]++; } |