From: Michel Dänzer Date: Tue, 27 Mar 2007 07:19:51 +0000 (+0200) Subject: r300: Check ctx->WinSysDrawBuffer before calling function that dereferences it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63c57a14d3e9419434bb9ee4d0c5c0d64f2e7847;p=mesa.git r300: Check ctx->WinSysDrawBuffer before calling function that dereferences it. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10417 . --- 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); }