If GLENCORE is enabled, free both encore and noencore textures

This commit is contained in:
indev authored and Alug committed 2025-04-16 15:57:55 +02:00
1 parent 123fe48cad
commit 804d9e2e8e
1 file changed
+4
+4
View File
@@ -585,7 +585,11 @@ void HWR_FreeMapTextures(void)
{
size_t i;
#ifdef GLENCORE
for (i = 0; i < gl_numtextures*2; i++)
#else
for (i = 0; i < gl_numtextures; i++)
#endif
{
FreeMapTexture(&gl_textures[i]);
}