r300: Fix radeonUpdatePageFlipping() function.
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 27 Mar 2007 14:27:34 +0000 (16:27 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 27 Mar 2007 14:27:34 +0000 (16:27 +0200)
Always call driFlipRenderbuffers() with pfCurrentPage value, in case it's
initially 1 instead of 0. May fix some issues with pageflip, the same fix was
applied to r128, radeon and r200 (6e0e6eff05727ac8833c2b2dffc51c6619427e77).

src/mesa/drivers/dri/r300/radeon_lock.c

index b331cfae6af4efab236b0e61684946418459d301..ec501c3dc0615e11ac5c9246b629b7da2a7571fc 100644 (file)
@@ -55,8 +55,8 @@ static void radeonUpdatePageFlipping(radeonContextPtr radeon)
        int use_back;
 
        radeon->doPageFlip = radeon->sarea->pfState;
-        if (!radeon->doPageFlip && radeon->glCtx->WinSysDrawBuffer) {
-           driFlipRenderbuffers(radeon->glCtx->WinSysDrawBuffer, GL_FALSE);
+        if (radeon->glCtx->WinSysDrawBuffer) {
+           driFlipRenderbuffers(radeon->glCtx->WinSysDrawBuffer, radeon->sarea->pfCurrentPage);
         }
 
        use_back = (radeon->glCtx->DrawBuffer->_ColorDrawBufferMask[0] == BUFFER_BIT_BACK_LEFT);