From 70a56b48871eb4eb27c54804c1fba1fbfcf9763f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 9 Feb 2013 00:33:41 -0800 Subject: [PATCH] Delete FBOs in fbo_destroy(). --- gfx_es2/fbo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx_es2/fbo.cpp b/gfx_es2/fbo.cpp index bab538f47b..f0800e1bb9 100644 --- a/gfx_es2/fbo.cpp +++ b/gfx_es2/fbo.cpp @@ -169,6 +169,7 @@ void fbo_destroy(FBO *fbo) { glDeleteFramebuffers(1, &fbo->handle); glDeleteTextures(1, &fbo->color_texture); glDeleteRenderbuffers(1, &fbo->z_stencil_buffer); + delete fbo; } void fbo_get_dimensions(FBO *fbo, int *w, int *h) {