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>
This commit is contained in:
parent
8476d99231
commit
87ca6320f2
|
@ -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…
Reference in New Issue
Block a user