summaryrefslogtreecommitdiff
path: root/indra/llui/llui.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-03-12 20:01:16 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2010-03-12 20:01:16 +0200
commita321c51edac7ee75a5b65a1954424e789d1f3b1c (patch)
treed0742fb10f6ea53a11cf3228bad0092390e31059 /indra/llui/llui.cpp
parent3e75fe4db1aa3659dfc34598ece090d845ac6c5a (diff)
parentf5c431aa7bce953503b33c957ba024bdd9104e63 (diff)
Merge from default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/llui/llui.cpp')
-rw-r--r--indra/llui/llui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp
index 5121ef5351..9134adc6d1 100644
--- a/indra/llui/llui.cpp
+++ b/indra/llui/llui.cpp
@@ -202,6 +202,11 @@ 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);