summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-14 00:49:09 +0000
committerBrian Paul <[email protected]>2005-09-14 00:49:09 +0000
commit41cf68b4cb493444e38e84409e54f258ec751784 (patch)
tree62a14e6b5ce9311801f6ccde9e608f342afd4478 /src
parenta400a1e4045e2478032bc5b8ae0b794964b24bae (diff)
pageflip change from radeon driver
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_lock.c5
1 files changed, 5 insertions, 0 deletions
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);