Fix noencore map not getting used.

This commit is contained in:
NepDisk 2024-12-29 14:39:06 -05:00
parent 95b98700ae
commit 2a50e4693a

View file

@ -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);