Cache TERRAIN on texture_t
- K_GetTerrainForTextureNum no longer performs a string lookup
This commit is contained in:
parent
ea08369fcd
commit
3bbc4eee1e
2 changed files with 3 additions and 0 deletions
|
|
@ -2066,4 +2066,6 @@ void K_InitTerrain(UINT16 wadNum)
|
|||
free(name);
|
||||
}
|
||||
}
|
||||
|
||||
R_ClearTextureNumCache(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue