diff options
author | Roland Scheidegger <sroland@tungstengraphics.com> | 2007-03-27 16:27:34 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@tungstengraphics.com> | 2007-03-27 16:27:34 +0200 |
commit | 3b8ab881312f36a948913653ed3c471017f811f0 (patch) | |
tree | 624508408f737fa1b071075368040147f763c11d /src/mesa/drivers/dri | |
parent | 32225d06b9ade78df612b3fd8c3aff93afa3b7ff (diff) |
r300: Fix radeonUpdatePageFlipping() function.
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).
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_lock.c b/src/mesa/drivers/dri/r300/radeon_lock.c index b331cfae6a..ec501c3dc0 100644 --- a/src/mesa/drivers/dri/r300/radeon_lock.c +++ b/src/mesa/drivers/dri/r300/radeon_lock.c @@ -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); |