vo_opengl: do not leak previous FBO when reallocating it

WTF of the day.
This commit is contained in:
wm4 2016-06-08 17:49:10 +02:00
parent b906eb37ed
commit a15181e5df
1 changed files with 2 additions and 0 deletions

View File

@ -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,