From 3c986150692e5975a408cec9f2cd852d8a83e3d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Jul 2012 19:04:27 +0200 Subject: vo_gl, vo_gl3: honor global --vsync option Both VOs will now by default try to set vsync according to the global vsync setting. By default, vsync is enabled, and passing --no-vsync will disable it. The --vsync option used to matter for vo_vesa only, but that VO has been removed. --- libvo/vo_gl3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvo/vo_gl3.c') diff --git a/libvo/vo_gl3.c b/libvo/vo_gl3.c index 4f673e951f..badb64b95a 100644 --- a/libvo/vo_gl3.c +++ b/libvo/vo_gl3.c @@ -2164,7 +2164,7 @@ static int preinit(struct vo *vo, const char *arg) .colorspace = MP_CSP_DETAILS_DEFAULTS, .use_npot = 1, .use_pbo = 0, - .swap_interval = 1, + .swap_interval = vo_vsync, .osd_color = 0xffffff, .fbo_format = GL_RGB16, .use_scale_sep = 1, -- cgit v1.2.3