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:
Jesse Barnes 2010-03-05 09:49:03 -08:00
parent 8476d99231
commit 87ca6320f2

View File

@ -616,8 +616,8 @@ DRI2SwapBuffers(ClientPtr client, DrawablePtr pDraw, CARD64 target_msc,
return BadDrawable; return BadDrawable;
} }
/* Old DDX, just blit */ /* Old DDX or no swap interval, just blit */
if (!ds->ScheduleSwap) { if (!ds->ScheduleSwap || !pPriv->swap_interval) {
BoxRec box; BoxRec box;
RegionRec region; RegionRec region;