summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c')
-rw-r--r--xc/lib/GL/mesa/src/drv/r128/r128_ioctl.c4
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.