"delet" HWR_InitMapTextures

we currently dont need this, gl_textures were already initialized due to being "static" (still explicitly init it to NULL)
this would only be useful for renderer switching, which we dont have
This commit is contained in:
Alug committed 2025-10-31 02:23:28 +01:00
1 parent b7a204dbfa
commit 69a401c679
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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)
{
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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();