pageflip change from radeon driver
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 Sep 2005 00:49:09 +0000 (00:49 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 Sep 2005 00:49:09 +0000 (00:49 +0000)
src/mesa/drivers/dri/r300/radeon_lock.c

index 3c7fc72a426496ed9464e3ac90a44fe9200b0541..7400fd7839a4fb8c790c0bd5695bc86e83958825 100644 (file)
@@ -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);