mirror of https://github.com/mpv-player/mpv
vo_opengl: guarantee correct reinitialization on setting options
At least the scale_sep_fbo could have been uninitialized or initialized incorrectly when switching between scalers (e.g. from bilinear to lanczos). Calling check_resize() should take care of this.
This commit is contained in:
parent
a8f565008b
commit
571fe8f729
|
@ -2575,6 +2575,7 @@ void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts)
|
|||
check_gl_features(p);
|
||||
gl_video_set_gl_state(p);
|
||||
reinit_rendering(p);
|
||||
check_resize(p);
|
||||
}
|
||||
|
||||
void gl_video_get_colorspace(struct gl_video *p, struct mp_image_params *params)
|
||||
|
|
Loading…
Reference in New Issue