diff options
author | Dave Parks <davep@lindenlab.com> | 2010-03-12 13:17:30 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-03-12 13:17:30 -0600 |
commit | d2996b685972e2b066e6821d0bc258073d8ceb1d (patch) | |
tree | 27dd9bd1c6d90b93d28be0de0bffddaa43f8b531 /indra/llrender | |
parent | 58afe469f9d29aea0d3d974ac112725ddbaa3a19 (diff) |
EXT-6276 Fix for UI going all wonky.
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llrender.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 26282b0ee3..c3540a717c 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -866,7 +866,15 @@ void LLRender::scaleUI(F32 x, F32 y, F32 z) void LLRender::pushUIMatrix() { - mUIOffset.push_front(mUIOffset.front()); + if (mUIOffset.empty()) + { + mUIOffset.push_front(LLVector3(0,0,0)); + } + else + { + mUIOffset.push_front(mUIOffset.front()); + } + if (mUIScale.empty()) { mUIScale.push_front(LLVector3(1,1,1)); |