diff options
author | wm4 <wm4@nowhere> | 2012-07-29 19:04:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-07-30 01:42:54 +0200 |
commit | 3c986150692e5975a408cec9f2cd852d8a83e3d1 (patch) | |
tree | 9f117a91d635eba9355af48c3f8a468e1a9cf6cb /libvo/vo_gl.c | |
parent | 614f847516b7ed98784b8d491a417e037ff2f391 (diff) | |
download | mpv-3c986150692e5975a408cec9f2cd852d8a83e3d1.tar.bz2 mpv-3c986150692e5975a408cec9f2cd852d8a83e3d1.tar.xz |
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.
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 1a1336de9c..4d98856ea9 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -1194,7 +1194,7 @@ static int preinit(struct vo *vo, const char *arg) .use_rectangle = -1, .ati_hack = -1, .force_pbo = -1, - .swap_interval = 1, + .swap_interval = vo_vsync, .custom_prog = NULL, .custom_tex = NULL, .custom_tlin = 1, |