summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorrichard <none@none>2009-11-04 20:46:17 -0800
committerrichard <none@none>2009-11-04 20:46:17 -0800
commitecaf21b22616cad649784e6874249e35f1feee7b (patch)
treefae76b45a1b83e9ebd6cea2fb2d68f2d73b8fbcb /indra
parent0292fec348dbe3c65c6e56b2bef8149e4ce58d54 (diff)
better fix for clipping not working
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lllocalcliprect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/lllocalcliprect.cpp b/indra/llui/lllocalcliprect.cpp
index f5a78e1099..43c21e250c 100644
--- a/indra/llui/lllocalcliprect.cpp
+++ b/indra/llui/lllocalcliprect.cpp
@@ -77,8 +77,6 @@ LLScreenClipRect::LLScreenClipRect(const LLRect& rect, BOOL enabled)
LLScreenClipRect::~LLScreenClipRect()
{
- // finish any deferred calls in this clipping region
- gGL.flush();
if (mEnabled)
{
popClipRect();
@@ -115,6 +113,9 @@ void LLScreenClipRect::updateScissorRegion()
{
if (sClipRectStack.empty()) return;
+ // finish any deferred calls in the old clipping region
+ gGL.flush();
+
LLRect rect = sClipRectStack.top();
stop_glerror();
S32 x,y,w,h;