summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-06 11:11:23 +0200
committerwm4 <wm4@nowhere>2016-09-06 11:11:23 +0200
commite5cefa346da00feb01a2bb76be19a9d80e191a12 (patch)
tree55164c72cfe8dc4373d77ec28bba6e154aca07f6
parentc36aaeeb2a3f1ad84671367617899e11d0597824 (diff)
downloadmpv-e5cefa346da00feb01a2bb76be19a9d80e191a12.tar.bz2
mpv-e5cefa346da00feb01a2bb76be19a9d80e191a12.tar.xz
vo_opengl: fix --icc-profile initial behavior
Setting --icc-profile had no effect, until a vo_opengl option was changed at runtime. We must initialize the renderer for the initial option state too. For some reason, the ICC profile gets loaded twice. The next commit happens to fix this.
-rw-r--r--video/out/opengl/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 44092897bf..c3b5eb6f18 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -3425,6 +3425,7 @@ struct gl_video *gl_video_init(GL *gl, struct mp_log *log, struct mpv_global *g)
p->scaler[n] = (struct scaler){.index = n};
gl_video_set_debug(p, true);
init_gl(p);
+ reinit_from_options(p);
return p;
}