MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / opengl_ResetCache

Function opengl_ResetCache

renderer/HardwareOpenGL.cpp:1327–1337  ·  view source on GitHub ↗

Resets the texture cache

Source from the content-addressed store, hash-verified

1325
1326// Resets the texture cache
1327void opengl_ResetCache(void) {
1328 if (OpenGL_cache_initted) {
1329 mem_free(OpenGL_lightmap_remap);
1330 mem_free(OpenGL_bitmap_remap);
1331 mem_free(OpenGL_lightmap_states);
1332 mem_free(OpenGL_bitmap_states);
1333 OpenGL_cache_initted = 0;
1334 }
1335
1336 opengl_InitCache();
1337}
1338
1339uint8_t opengl_Framebuffer_ready = 0;
1340chunked_bitmap opengl_Chunked_bitmap;

Callers 2

rend_ResetCacheFunction · 0.70

Calls 1

opengl_InitCacheFunction · 0.70

Tested by

no test coverage detected