summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontgl.cpp
diff options
context:
space:
mode:
authorziree <none@none>2011-07-17 17:26:40 +0200
committerziree <none@none>2011-07-17 17:26:40 +0200
commit535f7187368286a9df13b7a5f2cdec63a26c5801 (patch)
tree8ef6bc376ca65ca291c4fddefb7369a6532a2fbc /indra/llrender/llfontgl.cpp
parentd72a21aca1b9692941c066b7aaca69952c27de68 (diff)
Proposed fix for FIRE-543 - Hovertext renders as overlay on top of everything else
(transplanted from 7af0278beaefa4fb1eb9a41f4e9317ac5fe37690)
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
-rw-r--r--indra/llrender/llfontgl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index d6c062fc5e..328d520417 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -195,6 +195,8 @@ S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, F32 x, F32 y, cons
origin.mV[VX] -= llround((F32)sCurOrigin.mX) - (sCurOrigin.mX);
origin.mV[VY] -= llround((F32)sCurOrigin.mY) - (sCurOrigin.mY);
+ // don't forget to do the depth translation, too. -Zi
+ gGL.translatef(0.f,0.f,sCurOrigin.mZ);
S32 chars_drawn = 0;
S32 i;