diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/textures.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/textures.cc b/src/render/textures.cc index 8d180b7..6817aa5 100644 --- a/src/render/textures.cc +++ b/src/render/textures.cc @@ -79,6 +79,7 @@ void Textures::clear() if (textures[i]) { glDeleteTextures(1, &textures[i]); } + texture_size[i].clear(); } registry.clear(); @@ -94,6 +95,7 @@ void Textures::unload(const std::string &name) if (textures[id]) { glDeleteTextures(1, &textures[id]); textures[id] = 0; + texture_size[id].clear(); } registry.erase(it); } |