diff --git a/src/engine/render/renderlights.cpp b/src/engine/render/renderlights.cpp index b48d31480..ff6b61bf2 100644 --- a/src/engine/render/renderlights.cpp +++ b/src/engine/render/renderlights.cpp @@ -1120,21 +1120,11 @@ struct shadowcacheval shadowcacheval(const shadowmapinfo &sm) : x(sm.x), y(sm.y), size(sm.size), sidemask(sm.sidemask) {} }; -struct shadowcache : hashtable -{ - shadowcache() : hashtable(256) {} - - void reset() - { - clear(); - } -}; - class ShadowAtlas { public: GLuint fbo = 0; - shadowcache cache; + hashtable cache; bool full = false; void cleanup(); @@ -1883,7 +1873,7 @@ void resetlights() { static constexpr int shadowcacheevict = 2; static int evictshadowcache = 0; - shadowatlas.cache.reset(); + shadowatlas.cache.clear(); if(smcache) { vec2 sasize = shadowatlaspacker.dimensions();