If GLENCORE is enabled, free both encore and noencore textures

This commit is contained in:
indev committed 2025-04-15 17:50:05 +03:00
1 parent afd0613199
commit feb93360a4
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]);
}