From e5cefa346da00feb01a2bb76be19a9d80e191a12 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Sep 2016 11:11:23 +0200 Subject: [PATCH] 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. --- video/out/opengl/video.c | 1 + 1 file changed, 1 insertion(+) 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; }