diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-25 23:49:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-25 23:49:27 +0000 |
commit | 7b462801d500b43bd7ebebe69c2e8a9d5e3f1261 (patch) | |
tree | 3c0c941cd7a98defb8d8e138f0c0ddb5d5903c68 /gfx/models/texture.cpp | |
parent | Add traits helpers for glTexParameter functions (diff) | |
download | ilt-7b462801d500b43bd7ebebe69c2e8a9d5e3f1261.tar.bz2 ilt-7b462801d500b43bd7ebebe69c2e8a9d5e3f1261.tar.xz ilt-7b462801d500b43bd7ebebe69c2e8a9d5e3f1261.zip |
Remove the static texture cache
Static variables persist too long, destruction is unmanaged and occurs after the gl
context is gone.
Diffstat (limited to 'gfx/models/texture.cpp')
-rw-r--r-- | gfx/models/texture.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gfx/models/texture.cpp b/gfx/models/texture.cpp index 0ebba08..51223aa 100644 --- a/gfx/models/texture.cpp +++ b/gfx/models/texture.cpp @@ -2,7 +2,6 @@ #include "config/types.h" #include "glArrays.h" #include "tga.h" -#include <cache.h> #include <fcntl.h> #include <filesystem.h> #include <gfx/image.h> @@ -13,8 +12,6 @@ #include <stb/stb_image.h> #include <sys/mman.h> -Cache<Texture, std::filesystem::path> Texture::cachedTexture; - GLint TextureOptions::glMapMode(TextureOptions::MapMode mm) { |