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