diff options
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r-- | video/out/vo_x11.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index 461b05f22a..d1a689b22e 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -308,14 +308,17 @@ static void flip_page(struct vo *vo) struct priv *p = vo->priv; Display_Image(p, p->myximage[p->current_buf]); p->current_buf = (p->current_buf + 1) % 2; - vo_x11_present(vo); - present_sync_swap(vo->x11->present); + if (vo->x11->use_present) { + vo_x11_present(vo); + present_sync_swap(vo->x11->present); + } } static void get_vsync(struct vo *vo, struct vo_vsync_info *info) { struct vo_x11_state *x11 = vo->x11; - present_sync_get_info(x11->present, info); + if (x11->use_present) + present_sync_get_info(x11->present, info); } // Note: REDRAW_FRAME can call this with NULL. |