Cache TERRAIN on texture_t

- K_GetTerrainForTextureNum no longer performs a string
  lookup
This commit is contained in:
James R 2023-12-22 04:22:04 -08:00 committed by NepDisk
parent ea08369fcd
commit 3bbc4eee1e
2 changed files with 3 additions and 0 deletions

View file

@ -2066,4 +2066,6 @@ void K_InitTerrain(UINT16 wadNum)
free(name);
}
}
R_ClearTextureNumCache(false);
}

View file

@ -27,6 +27,7 @@
#include "p_setup.h" // levelflats
#include "byteptr.h"
#include "dehacked.h"
#include "k_terrain.h"
#ifdef HWRENDER
#include "hardware/hw_glob.h" // HWR_LoadMapTextures