diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-04-29 08:21:08 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-04-29 08:21:08 +0000 |
commit | f1a7d632d5b51d0b19e24d89591b82db7e7f99b8 (patch) | |
tree | 631dd022466bd0bc9fec214c33d013a882e8bad8 | |
parent | d31591ea15c105dc2ec61db315c02600f1bd96db (diff) |
Shortcircuit ioctl if no focus
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_ioctl.c | 3 |
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 bba2c94ef2..9b10fc1389 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 ); |