From 41cf68b4cb493444e38e84409e54f258ec751784 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 14 Sep 2005 00:49:09 +0000 Subject: [PATCH] pageflip change from radeon driver --- src/mesa/drivers/dri/r300/radeon_lock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/r300/radeon_lock.c b/src/mesa/drivers/dri/r300/radeon_lock.c index 3c7fc72a426..7400fd7839a 100644 --- a/src/mesa/drivers/dri/r300/radeon_lock.c +++ b/src/mesa/drivers/dri/r300/radeon_lock.c @@ -42,6 +42,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "framebuffer.h" +#include "drirenderbuffer.h" + #if DEBUG_LOCKING char *prevLockFile = NULL; int prevLockLine = 0; @@ -54,6 +56,9 @@ static void radeonUpdatePageFlipping(radeonContextPtr radeon) int use_back; radeon->doPageFlip = radeon->sarea->pfState; + if (!radeon->doPageFlip) { + driFlipRenderbuffers(radeon->glCtx->WinSysDrawBuffer, GL_FALSE); + } use_back = (radeon->glCtx->DrawBuffer->_ColorDrawBufferMask[0] == BUFFER_BIT_BACK_LEFT); use_back ^= (radeon->sarea->pfCurrentPage == 1); -- 2.30.2