From c331b0fa89816e239efb9925ad743bb6953f95e2 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 9 Mar 2024 01:59:27 +0100 Subject: [PATCH] e --- src/hardware/hw_cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 2d1d74bab..855d6340e 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -123,14 +123,14 @@ static void HWR_DrawColumnInCache(const column_t *patchcol, UINT8 *block, GLMipm switch (bpp) { case 2 : texelu16 = (UINT16)((alpha<<8) | texel); - memcpy(dest, &texelu16, sizeof(UINT16)); + memcpy_fast(dest, &texelu16, sizeof(UINT16)); break; case 3 : colortemp = palette[texel]; - memcpy(dest, &colortemp, sizeof(RGBA_t)-sizeof(UINT8)); + memcpy_fast(dest, &colortemp, sizeof(RGBA_t)-sizeof(UINT8)); break; case 4 : colortemp = palette[texel]; colortemp.s.alpha = alpha; - memcpy(dest, &colortemp, sizeof(RGBA_t)); + memcpy_fast(dest, &colortemp, sizeof(RGBA_t)); break; // default is 1 default: *dest = texel;