summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithw <keithw>2001-03-23 04:29:52 +0000
committerkeithw <keithw>2001-03-23 04:29:52 +0000
commit7086d8904ad04f7a451fd47adb9bd1b8eaf33e43 (patch)
treedac16ab47f8d31e442f777f4f37aa26b4dc81edc
parent1512848b839a9bb3471d683d498c650f8826701e (diff)
fix segv in swapbuffersmesa-3-5-20010323-freeze
-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.