mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 00:07:33 +00:00
vo_opengl: do not leak previous FBO when reallocating it
WTF of the day.
This commit is contained in:
parent
b906eb37ed
commit
a15181e5df
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user