From: Brian Paul Date: Sun, 4 Sep 2005 16:15:38 +0000 (+0000) Subject: Fix UpdatePageFlipping() function. Always call driFlipRenderbuffers() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e0e6eff05727ac8833c2b2dffc51c6619427e77;p=mesa.git Fix UpdatePageFlipping() function. Always call driFlipRenderbuffers() with pfCurrentPage value, in case it's initially 1 instead of 0. --- diff --git a/src/mesa/drivers/dri/r128/r128_lock.c b/src/mesa/drivers/dri/r128/r128_lock.c index ff11eb68480..d7c35afff37 100644 --- a/src/mesa/drivers/dri/r128/r128_lock.c +++ b/src/mesa/drivers/dri/r128/r128_lock.c @@ -52,10 +52,8 @@ static void r128UpdatePageFlipping( r128ContextPtr rmesa ) { rmesa->doPageFlip = rmesa->sarea->pfAllowPageFlip; - if (!rmesa->doPageFlip) { - driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, GL_FALSE); - } - + driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, + rmesa->sarea->pfCurrentPage); rmesa->new_state |= R128_NEW_WINDOW; } diff --git a/src/mesa/drivers/dri/r200/r200_lock.c b/src/mesa/drivers/dri/r200/r200_lock.c index 1279cd70f9a..6c619e26074 100644 --- a/src/mesa/drivers/dri/r200/r200_lock.c +++ b/src/mesa/drivers/dri/r200/r200_lock.c @@ -53,9 +53,8 @@ static void r200UpdatePageFlipping( r200ContextPtr rmesa ) { rmesa->doPageFlip = rmesa->sarea->pfState; - if (!rmesa->doPageFlip) { - driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, GL_FALSE); - } + driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, + rmesa->sarea->pfCurrentPage); } diff --git a/src/mesa/drivers/dri/radeon/radeon_lock.c b/src/mesa/drivers/dri/radeon/radeon_lock.c index c342b115080..144e11d4910 100644 --- a/src/mesa/drivers/dri/radeon/radeon_lock.c +++ b/src/mesa/drivers/dri/radeon/radeon_lock.c @@ -55,9 +55,8 @@ static void radeonUpdatePageFlipping( radeonContextPtr rmesa ) { rmesa->doPageFlip = rmesa->sarea->pfState; - if (!rmesa->doPageFlip) { - driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, GL_FALSE); - } + driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, + rmesa->sarea->pfCurrentPage); }