summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-24 18:31:09 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commitb406f679b127aa3f5fa5f728adb27bc8d500dff1 (patch)
tree790967cb0d0ad1c989117f737f7d8646ac68f9b8
parent1112b1ba33e9a5e3c563e081bebe3a12962354ac (diff)
downloadmpv-b406f679b127aa3f5fa5f728adb27bc8d500dff1.tar.bz2
mpv-b406f679b127aa3f5fa5f728adb27bc8d500dff1.tar.xz
vo: remove bogus #if
If anyone happened to build with GL disabled, this could lead to option changes not always refreshing the screen. Since vo_gpu is always enabled now (just not necessarily any backend for it), we can drop the #if completely. (The way this works is a bit idiotic - the option cache exists only to grab the change notification, which will trigger a redraw and make vo_gpu update its own second copy of them. But at least it avoids some layering issues for now.)
-rw-r--r--video/out/vo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index aa3e1b5a6a..a33d9fd15f 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -300,11 +300,9 @@ static struct vo *vo_create(bool probing, struct mpv_global *global,
m_config_cache_set_dispatch_change_cb(vo->opts_cache, vo->in->dispatch,
update_opts, vo);
-#if HAVE_GL
vo->gl_opts_cache = m_config_cache_alloc(NULL, global, &gl_video_conf);
m_config_cache_set_dispatch_change_cb(vo->gl_opts_cache, vo->in->dispatch,
update_opts, vo);
-#endif
vo->eq_opts_cache = m_config_cache_alloc(NULL, global, &mp_csp_equalizer_conf);
m_config_cache_set_dispatch_change_cb(vo->eq_opts_cache, vo->in->dispatch,