Workaround encore crash in HWR_GetMappedPatch

This commit is contained in:
Eidolon 2023-12-14 23:05:17 -06:00
parent 9147aeaac7
commit 4654bb43bb

View file

@ -1082,7 +1082,8 @@ void HWR_GetMappedPatch(patch_t *patch, const UINT8 *colormap)
Patch_CreateGL(patch); Patch_CreateGL(patch);
grPatch = patch->hardware; grPatch = patch->hardware;
if (colormap == colormaps || colormap == NULL) // Blatant hack for encore colormapping aside...
if (colormap == colormaps || colormap == NULL || colormap == COLORMAP_REMAPOFFSET)
{ {
// Load the default (green) color in hardware cache // Load the default (green) color in hardware cache
HWR_GetPatch(patch); HWR_GetPatch(patch);