summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-04-29 08:21:08 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-04-29 08:21:08 +0000
commitf1a7d632d5b51d0b19e24d89591b82db7e7f99b8 (patch)
tree631dd022466bd0bc9fec214c33d013a882e8bad8
parentd31591ea15c105dc2ec61db315c02600f1bd96db (diff)
Shortcircuit ioctl if no focus
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
index bba2c94ef26..9b10fc13891 100644
--- a/src/mesa/drivers/dri/radeon/radeon_ioctl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
@@ -1225,6 +1225,9 @@ void radeonFlush( GLcontext *ctx )
if (RADEON_DEBUG & DEBUG_IOCTL)
fprintf(stderr, "%s\n", __FUNCTION__);
+ if (!rmesa->radeonScreen->buffers)
+ return;
+
if (rmesa->dma.flush)
rmesa->dma.flush( rmesa );