diff options
author | wm4 <wm4@nowhere> | 2015-01-22 19:25:16 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:21 +0900 |
commit | 9e6091a5b11e7218a84d23bfa9847ccbb265d53d (patch) | |
tree | 504c144caaade897d27fa5ded1e03742a0957cd2 /video | |
parent | 74c214609233d515a79ecb3c887d1b300f887b82 (diff) | |
download | mpv-9e6091a5b11e7218a84d23bfa9847ccbb265d53d.tar.bz2 mpv-9e6091a5b11e7218a84d23bfa9847ccbb265d53d.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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index fda99a83b0..002f11124c 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -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) |