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.
This commit is contained in:
wm4 2016-09-06 11:11:23 +02:00
parent c36aaeeb2a
commit e5cefa346d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}