diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-20 18:39:13 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-20 18:39:13 +0100 |
commit | 2212baa8454abb4c7948c3f2e20e337f831d1b86 (patch) | |
tree | 905a7404e4bf10b87e5dfbe2eaf1540eff60decd /src/i830_dri.c | |
parent | fac8f2eb49de22abd853ca75f3c985d4d94e3633 (diff) |
Don't mark page flipping as active when it really isn't.
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r-- | src/i830_dri.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c index b368c992..d6551830 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -1382,8 +1382,11 @@ I830DRISetPfMask(ScreenPtr pScreen, int pfMask) I830Ptr pI830 = I830PTR(pScrn); drmI830Sarea *pSAREAPriv = DRIGetSAREAPrivate(pScreen); - pSAREAPriv->pf_enabled = pI830->allowPageFlip; - pSAREAPriv->pf_active = pfMask; + if (pI830->allowPageFlip && pfMask) { + pSAREAPriv->pf_enabled = pI830->allowPageFlip; + pSAREAPriv->pf_active = pfMask; + } else + pSAREAPriv->pf_enabled = pSAREAPriv->pf_active = 0; } static void |