better fix for clipping not working
parent
0292fec348
commit
ecaf21b226
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue