summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-22 19:25:16 +0100
committerwm4 <wm4@nowhere>2015-01-22 19:25:16 +0100
commit571fe8f729827c628a2fa25c0b7b468a1a4559ae (patch)
tree2d82fb03a1753515497102255f8ed5047d7f2caf
parenta8f565008b135cb47177e63c9be59f630f08d9da (diff)
downloadmpv-571fe8f729827c628a2fa25c0b7b468a1a4559ae.tar.bz2
mpv-571fe8f729827c628a2fa25c0b7b468a1a4559ae.tar.xz
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.
-rw-r--r--video/out/gl_video.c1
1 files changed, 1 insertions, 0 deletions
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)