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
74c2146092
commit
9e6091a5b1
|
@ -2483,6 +2483,7 @@ void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts)
|
|||
|
||||
check_gl_features(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