diff options
author | Michel Dänzer <[email protected]> | 2007-03-27 09:19:51 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-03-27 09:44:32 +0200 |
commit | 63c57a14d3e9419434bb9ee4d0c5c0d64f2e7847 (patch) | |
tree | 67ccffabb1c136ad078fb5cf9f71ff8dc59763d3 /src/mesa | |
parent | 25f21b5331d27225b1f6b7aaf2c9bf3f32764d91 (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')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_lock.c | 2 |
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); } |