]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Texture.h
supressed a done TODO
[lugaru.git] / Source / Texture.h
index 4424cee68a47656c785d5297d82aa1655598b574..69226761fcf50fcfba8806f2e6d1e8f3d60d3433 100644 (file)
@@ -2,7 +2,6 @@
 #include <string>
 
 //keeps track of which textures are loaded
-//TODO: delete them properly
 class Texture {
        private:
                static std::map<std::string,Texture> textures;
@@ -22,9 +21,7 @@ class Texture {
                Texture():
                        isSkin(false), skinsize(0), arraySize(0),
                        fileName(""), id(0), mipmap(false), hasalpha(false), array(NULL) { }
-               ~Texture() {
-                       free(array);
-               }
+               ~Texture();
                Texture (const std::string& _fileName, bool _mipmap, bool _hasalpha):
                        isSkin(false), skinsize(0), arraySize(0), array(NULL),
                        fileName(_fileName), id(0), mipmap(_mipmap), hasalpha(_hasalpha) { }