mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Memory leak fix
This commit is contained in:
parent
c691183bf8
commit
e5e1dc0ed3
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ Framebuffer::Framebuffer(uint width, uint height) : width(width), height(height)
|
|||
Framebuffer::~Framebuffer() {
|
||||
delete texture;
|
||||
glDeleteFramebuffers(1, &fbo);
|
||||
glDeleteRenderbuffers(1, &depth);
|
||||
}
|
||||
|
||||
void Framebuffer::bind() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue