summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontgl.cpp
diff options
context:
space:
mode:
authorBoroondas Gupte <hg@boroon.dasgupta.ch>2011-07-21 10:54:22 +0200
committerBoroondas Gupte <hg@boroon.dasgupta.ch>2011-07-21 10:54:22 +0200
commit1a1a4beb52eb8f9ca11861e7787603bf585026f7 (patch)
tree372d20a70c564e432d6f2d4284d79bcf27768b1e /indra/llrender/llfontgl.cpp
parent912e99906b30c4558b755eb2c9e1c5efbde5e88c (diff)
FIRE-543/VWR-25588: made in-code comment a bit clearer
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
-rw-r--r--indra/llrender/llfontgl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index d23cb2e151..57eac4736b 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -195,7 +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.
+ // Depth translation, so that floating text appears 'inworld'
+ // and is correclty occluded.
gGL.translatef(0.f,0.f,sCurOrigin.mZ);
S32 chars_drawn = 0;