diff options
-rw-r--r-- | xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c b/xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c index f469fe3ed..42ff57e1b 100644 --- a/xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c +++ b/xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c @@ -225,7 +225,7 @@ static int r128WaitForFrameCompletion( r128ContextPtr rmesa ) */ void r128SwapBuffer( r128ContextPtr rmesa ) { - GLint nbox = rmesa->numClipRects; + GLint nbox; GLint i; GLint ret; @@ -239,6 +239,8 @@ void r128SwapBuffer( r128ContextPtr rmesa ) FLUSH_BATCH( rmesa ); LOCK_HARDWARE( rmesa ); + + nbox = rmesa->numClipRects; /* Throttle the frame rate -- only allow one pending swap buffers * request at a time. |