From 2a50e4693a992ec5b8282f30dc680e619620aa6f Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 29 Dec 2024 14:39:06 -0500 Subject: [PATCH] Fix noencore map not getting used. --- src/hardware/hw_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 474f53647..59c87e006 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -477,7 +477,7 @@ static void HWR_GenerateTexture(GLMapTexture_t *grtex, INT32 texnum, boolean noe grtex->mipmap.height = (UINT16)texture->height; grtex->mipmap.format = textureformat; - if (encoremap && R_TextureCanRemap(texnum)) + if (!noencoremap && R_TextureCanRemap(texnum)) colormap += COLORMAP_REMAPOFFSET; grtex->mipmap.colormap = Z_Calloc(sizeof(*grtex->mipmap.colormap), PU_HWRPATCHCOLMIPMAP, NULL);