X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTexture.cpp;h=a8df84ae9c1b244dd6b70a3c98d6ebc8ab4e62d4;hb=263a338c0c3648cfa2388d4a21584a09294ffd9e;hp=92c69d5c93c82472c92511c4cfa754884e610efb;hpb=d3f49f860739b0f3abfcae0f49f19d260b532af5;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() {