From 7b462801d500b43bd7ebebe69c2e8a9d5e3f1261 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 25 Jan 2024 23:49:27 +0000 Subject: Remove the static texture cache Static variables persist too long, destruction is unmanaged and occurs after the gl context is gone. --- gfx/models/texture.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'gfx/models/texture.cpp') 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 #include #include #include @@ -13,8 +12,6 @@ #include #include -Cache Texture::cachedTexture; - GLint TextureOptions::glMapMode(TextureOptions::MapMode mm) { -- cgit v1.2.3