X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTexture.cpp;h=92c69d5c93c82472c92511c4cfa754884e610efb;hb=cfdbe0ad0521045b27a60dbb1c963ea6dfdcda5a;hp=37d4073b0a862e2f8488e816e00618572070b1f4;hpb=01a48eb9a98fa8c7d407077aa69d493e74eb86cd;p=lugaru.git diff --git a/Source/Texture.cpp b/Source/Texture.cpp index 37d4073..92c69d5 100644 --- a/Source/Texture.cpp +++ b/Source/Texture.cpp @@ -9,6 +9,12 @@ map Texture::textures; extern TGAImageRec texture; extern bool trilinear; +Texture::~Texture() { + free(array); + if(id) + glDeleteTextures(1,&id); +} + void Texture::load() { GLuint type;