From 571fe8f729827c628a2fa25c0b7b468a1a4559ae Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 22 Jan 2015 19:25:16 +0100 Subject: 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. --- video/out/gl_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 654bd00c23..f16c2e485b 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -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) -- cgit v1.2.3