aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-06-08 17:49:10 +0200
committerGravatar wm4 <wm4@nowhere>2016-06-08 17:49:23 +0200
commita15181e5df5ba8a21e6a5b953213f4a72690c47f (patch)
tree522dd1bb02ea7a780737da798cc6f0ca157706f0 /video/out
parentb906eb37ed7f08a52accc81f8c49bce57ec27561 (diff)
vo_opengl: do not leak previous FBO when reallocating it
WTF of the day.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/opengl/utils.c2
1 files changed, 2 insertions, 0 deletions
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,