From 63c57a14d3e9419434bb9ee4d0c5c0d64f2e7847 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 27 Mar 2007 09:19:51 +0200 Subject: [PATCH] r300: Check ctx->WinSysDrawBuffer before calling function that dereferences it. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10417 . --- src/mesa/drivers/dri/r300/radeon_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2