diff options
author | Brian Paul <[email protected]> | 2005-09-04 16:15:38 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-04 16:15:38 +0000 |
commit | 6e0e6eff05727ac8833c2b2dffc51c6619427e77 (patch) | |
tree | 2b01d7f8237bc1b2eee0c7189937f5867cb96af9 /src/mesa/drivers/dri/r128 | |
parent | d575a4c4a1795bda73ba1f6a1817b0dacac2174e (diff) |
Fix UpdatePageFlipping() function. Always call driFlipRenderbuffers()
with pfCurrentPage value, in case it's initially 1 instead of 0.
Diffstat (limited to 'src/mesa/drivers/dri/r128')
-rw-r--r-- | src/mesa/drivers/dri/r128/r128_lock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_lock.c b/src/mesa/drivers/dri/r128/r128_lock.c index ff11eb68480..d7c35afff37 100644 --- a/src/mesa/drivers/dri/r128/r128_lock.c +++ b/src/mesa/drivers/dri/r128/r128_lock.c @@ -52,10 +52,8 @@ static void r128UpdatePageFlipping( r128ContextPtr rmesa ) { rmesa->doPageFlip = rmesa->sarea->pfAllowPageFlip; - if (!rmesa->doPageFlip) { - driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, GL_FALSE); - } - + driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, + rmesa->sarea->pfCurrentPage); rmesa->new_state |= R128_NEW_WINDOW; } |