From a15181e5df5ba8a21e6a5b953213f4a72690c47f Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 8 Jun 2016 17:49:10 +0200 Subject: vo_opengl: do not leak previous FBO when reallocating it WTF of the day. --- video/out/opengl/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index 4702254df5..05db335d30 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -287,6 +287,8 @@ bool fbotex_change(struct fbotex *fbo, GL *gl, struct mp_log *log, int w, int h, GLenum filter = fbo->tex_filter; + fbotex_uninit(fbo); + *fbo = (struct fbotex) { .gl = gl, .rw = w, -- cgit v1.2.3