r300: Check ctx->WinSysDrawBuffer before calling function that dereferences it.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10417 .
This commit is contained in:
Michel Dänzer
2007-03-27 09:19:51 +02:00
parent 25f21b5331
commit 63c57a14d3
+1 -1
View File
@@ -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);
}