From 39592d8bbb7aeb16fbf2d50de8e31a00a325cf97 Mon Sep 17 00:00:00 2001 From: Logan Aerl Arias Date: Sat, 6 Apr 2024 15:14:32 -0400 Subject: [PATCH] HWR_DrawPatchInCache(): add cast for block --- 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 dbeecb1b2..85a7fb4bb 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -302,7 +302,7 @@ static void HWR_DrawPatchInCache(GLMipmap_t *mipmap, blockmodulo = pblockwidth*bpp; // Draw each column to the block cache - *block = mipmap->data; + *block = (UINT8)mipmap->data; for (int x = 0; x < pwidth; x++, block += bpp, xfrac += xfracstep) {