Skip to content
Snippets Groups Projects
Commit ecaf21b2 authored by richard's avatar richard
Browse files

better fix for clipping not working

parent 0292fec3
Branches
Tags
No related merge requests found
...@@ -77,8 +77,6 @@ LLScreenClipRect::LLScreenClipRect(const LLRect& rect, BOOL enabled) ...@@ -77,8 +77,6 @@ LLScreenClipRect::LLScreenClipRect(const LLRect& rect, BOOL enabled)
LLScreenClipRect::~LLScreenClipRect() LLScreenClipRect::~LLScreenClipRect()
{ {
// finish any deferred calls in this clipping region
gGL.flush();
if (mEnabled) if (mEnabled)
{ {
popClipRect(); popClipRect();
...@@ -115,6 +113,9 @@ void LLScreenClipRect::updateScissorRegion() ...@@ -115,6 +113,9 @@ void LLScreenClipRect::updateScissorRegion()
{ {
if (sClipRectStack.empty()) return; if (sClipRectStack.empty()) return;
// finish any deferred calls in the old clipping region
gGL.flush();
LLRect rect = sClipRectStack.top(); LLRect rect = sClipRectStack.top();
stop_glerror(); stop_glerror();
S32 x,y,w,h; S32 x,y,w,h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment