diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-03-12 12:14:52 -0800 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-03-12 12:14:52 -0800 |
commit | 070cb57ae12263c659e1c80091b76884cd8fadd1 (patch) | |
tree | 5c8d166d334d4dff6cad5dd2d4b7681110db51cc /indra | |
parent | 4c8ae214b3f9745102ee90c25d9f67183aea0903 (diff) | |
parent | 7ac2427b57c2d8e325b5e9c7fa87076bcaf2f6ef (diff) |
merge for backout.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/lltextbase.cpp | 9 | ||||
-rw-r--r-- | indra/llui/llui.cpp | 5 |
2 files changed, 2 insertions, 12 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index d514c0b389..633135382e 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -396,13 +396,8 @@ void LLTextBase::drawSelectionBackground() ++rect_it) { LLRect selection_rect = *rect_it; - // Don't send empty rects to gl_rect_2d. - // Drawing degenerate rectangles seems to cause https://jira.secondlife.com/browse/EXT-6276 . - if(selection_rect.notEmpty()) - { - selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom); - gl_rect_2d(selection_rect, selection_color); - } + selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom); + gl_rect_2d(selection_rect, selection_color); } } } diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp index 2cd3bac7dd..b049895526 100644 --- a/indra/llui/llui.cpp +++ b/indra/llui/llui.cpp @@ -202,11 +202,6 @@ void gl_rect_2d_offset_local( S32 left, S32 top, S32 right, S32 bottom, S32 pixe void gl_rect_2d(S32 left, S32 top, S32 right, S32 bottom, BOOL filled ) { - // FIXME: Drawing degenerate rectangles (specifically, zero-width rectangles) was causing - // https://jira.secondlife.com/browse/EXT-6276 on the Mac (presumably it was doing something bad to the GL state). - // That was fixed by checking for this case in LLTextBase::drawSelectionBackground(). - // It's possible we should check for degenerate rectangles here and not draw, but I wanted to do the minimal change for the moment. - stop_glerror(); gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |