X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTexture.cpp;h=a8df84ae9c1b244dd6b70a3c98d6ebc8ab4e62d4;hb=12421cc17c6176a16ec18901e02d760ccd0b28ad;hp=92c69d5c93c82472c92511c4cfa754884e610efb;hpb=bb61e3fc1a36858b603d3a3fc2058f7c63f081c5;p=lugaru.git diff --git a/Source/Texture.cpp b/Source/Texture.cpp index 92c69d5..a8df84a 100644 --- a/Source/Texture.cpp +++ b/Source/Texture.cpp @@ -11,8 +11,7 @@ extern bool trilinear; Texture::~Texture() { free(array); - if(id) - glDeleteTextures(1,&id); + glDeleteTextures(1,&id); } void Texture::load() {