From 016cc1e95fef6c5488c3719a151a354143d3781d Mon Sep 17 00:00:00 2001 From: Eidolon Date: Fri, 15 Dec 2023 11:19:34 -0600 Subject: [PATCH] Work around pointer-integer comparison in hw_cache --- 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 485da45f8..d43631f83 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -1083,7 +1083,7 @@ void HWR_GetMappedPatch(patch_t *patch, const UINT8 *colormap) grPatch = patch->hardware; // Blatant hack for encore colormapping aside... - if (colormap == colormaps || colormap == NULL || colormap == COLORMAP_REMAPOFFSET) + if (colormap == colormaps || colormap == NULL || colormap == (const UINT8*)(COLORMAP_REMAPOFFSET)) { // Load the default (green) color in hardware cache HWR_GetPatch(patch);