better fix for clipping not working

master
richard 2009-11-04 20:46:17 -08:00
parent 0292fec348
commit ecaf21b226
1 changed files with 3 additions and 2 deletions

View File

@ -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;