diff options
Diffstat (limited to 'src/Texture.cpp')
-rw-r--r-- | src/Texture.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Texture.cpp b/src/Texture.cpp index 5e367a9..0dd1eff 100644 --- a/src/Texture.cpp +++ b/src/Texture.cpp @@ -63,6 +63,13 @@ namespace Texture{ return object; } + void freeTextures(void){ + for(unsigned int i=0;i<LoadedTextureCounter;i++){ + glDeleteTextures(1,&LoadedTexture[i]->tex); + delete[] LoadedTexture[i]->name; + delete LoadedTexture[i]; + } + } } Texturec::Texturec(uint amt, ...){ |