summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-08-06 11:03:28 -0700
committerRichard Nelson <none@none>2010-08-06 11:03:28 -0700
commitad9330025d18a29a2e90b77472a1f1f6e3c165ae (patch)
treef3e0dce9f8b85a70b7fb4dadc83e79808a2042bd
parent91288422b1ac3033050c665c9bc33161478e32f2 (diff)
fixed crash on entering build mode
(transplanted from 72651623d96deee014411daeb82d50452261e0b3)
-rw-r--r--indra/llrender/llrender.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index e1f6964f83..e26acd53a3 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -895,7 +895,7 @@ LLVector3 LLRender::getUITranslation()
{
if (mUIOffset.empty())
{
- llerrs << "UI offset stack empty." << llendl;
+ return LLVector3::zero;
}
return mUIOffset.back();
}
@@ -904,7 +904,7 @@ LLVector3 LLRender::getUIScale()
{
if (mUIScale.empty())
{
- llerrs << "UI scale stack empty." << llendl;
+ return LLVector3(1.f, 1.f, 1.f);
}
return mUIScale.back();
}