diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 82c77be2a..ef0b9a1fb 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -446,7 +446,7 @@ typedef struct } GLMapTextureSet_t; // idk i suck at naming things static size_t gl_numtextures = 0; // Texture count -static GLMapTextureSet_t *gl_textures; // For all textures +static GLMapTextureSet_t *gl_textures = NULL; // For all textures static void HWR_FreeTextureData(patch_t *patch) { @@ -568,12 +568,12 @@ void HWR_ClearAllTextures(void) /*static void HWR_FreeColormapCache(void) { HWR_FreePatchCache(false); -}*/ +} void HWR_InitMapTextures(void) { gl_textures = NULL; -} +}*/ static void FreeMapTexture(GLMapTexture_t *tex) { diff --git a/src/hardware/hw_glob.h b/src/hardware/hw_glob.h index e6b6734a5..2191eb7d4 100644 --- a/src/hardware/hw_glob.h +++ b/src/hardware/hw_glob.h @@ -65,7 +65,7 @@ void HWR_FreeExtraSubsectors(void); extern RGBA_t mapPalette[256]; -void HWR_InitMapTextures(void); +//void HWR_InitMapTextures(void); void HWR_LoadMapTextures(size_t pnumtextures); void HWR_FreeMapTextures(void); diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index ffde07768..4350a4bbf 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -5767,7 +5767,7 @@ void HWR_Startup(void) CONS_Printf("HWR_Startup()...\n"); textureformat = patchformat = GL_TEXFMT_RGBA; - HWR_InitMapTextures(); + //HWR_InitMapTextures(); HWR_InitMD2(); gl_shadersavailable = HWR_InitShaders();