From c4b8ccaec2bf519d7cf4e836ffb6569203f0aa22 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 15 Oct 2023 01:46:48 +0300 Subject: [PATCH] fix a mistake in big endian conversion notaz/pcsx_rearmed#318 --- plugins/gpu_unai/gpu_inner_quantization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gpu_unai/gpu_inner_quantization.h b/plugins/gpu_unai/gpu_inner_quantization.h index 4368ddb8..8a4e9354 100644 --- a/plugins/gpu_unai/gpu_inner_quantization.h +++ b/plugins/gpu_unai/gpu_inner_quantization.h @@ -89,7 +89,7 @@ GPU_INLINE u16 gpuColorQuantization24(u32 uSrc24, const le16_t *pDst) { if (DITHER) { - u16 fbpos = (uintptr_t)pDst - (uintptr_t)gpu_unai.vram; + uintptr_t fbpos = pDst - gpu_unai.vram; u16 offset = ((fbpos & (0x7 << 10)) >> 7) | (fbpos & 0x7); //clean overflow flags and add -- 2.39.5