summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2007-03-27 09:19:51 +0200
committerMichel Dänzer <[email protected]>2007-03-27 09:44:32 +0200
commit63c57a14d3e9419434bb9ee4d0c5c0d64f2e7847 (patch)
tree67ccffabb1c136ad078fb5cf9f71ff8dc59763d3 /src/mesa/drivers
parent25f21b5331d27225b1f6b7aaf2c9bf3f32764d91 (diff)
r300: Check ctx->WinSysDrawBuffer before calling function that dereferences it.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10417 .
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_lock.c b/src/mesa/drivers/dri/r300/radeon_lock.c
index 1a2dfca7b0d..b331cfae6af 100644
--- a/src/mesa/drivers/dri/r300/radeon_lock.c
+++ b/src/mesa/drivers/dri/r300/radeon_lock.c
@@ -55,7 +55,7 @@ static void radeonUpdatePageFlipping(radeonContextPtr radeon)
int use_back;
radeon->doPageFlip = radeon->sarea->pfState;
- if (!radeon->doPageFlip) {
+ if (!radeon->doPageFlip && radeon->glCtx->WinSysDrawBuffer) {
driFlipRenderbuffers(radeon->glCtx->WinSysDrawBuffer, GL_FALSE);
}