mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 05:20:05 +01:00
DRI2: handle swap_interval of 0 correctly
A 0 swap interval means that swaps shouldn't be sync'd to vblank, so
just complete the swap immediately in that case.
Reviewed-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
(cherry picked from commit 87ca6320f2)
This commit is contained in:
parent
73fe4a0952
commit
20708781d4
1 changed files with 2 additions and 2 deletions
|
|
@ -616,8 +616,8 @@ DRI2SwapBuffers(ClientPtr client, DrawablePtr pDraw, CARD64 target_msc,
|
|||
return BadDrawable;
|
||||
}
|
||||
|
||||
/* Old DDX, just blit */
|
||||
if (!ds->ScheduleSwap) {
|
||||
/* Old DDX or no swap interval, just blit */
|
||||
if (!ds->ScheduleSwap || !pPriv->swap_interval) {
|
||||
BoxRec box;
|
||||
RegionRec region;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue