summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_video_textured.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index 29f4d9d4..47f4e5d5 100644
--- a/src/sna/sna_video_textured.c
+++ b/src/sna/sna_video_textured.c
@@ -235,7 +235,7 @@ sna_video_textured_put_image(ClientPtr client,
}
}
- if (crtc && sync && video->SyncToVblank != 0 &&
+ if (crtc && video->SyncToVblank != 0 &&
sna_pixmap_is_scanout(sna, pixmap)) {
kgem_set_mode(&sna->kgem, KGEM_RENDER, sna_pixmap(pixmap)->gpu_bo);
flush = sna_wait_for_scanline(sna, pixmap, crtc,
@@ -254,7 +254,7 @@ sna_video_textured_put_image(ClientPtr client,
/* Push the frame to the GPU as soon as possible so
* we can hit the next vsync.
*/
- if (flush)
+ if (flush || sync)
kgem_submit(&sna->kgem);
RegionUninit(&clip);