fix a mistake in big endian conversion
authornotaz <notasas@gmail.com>
Sat, 14 Oct 2023 22:46:48 +0000 (01:46 +0300)
committernotaz <notasas@gmail.com>
Sat, 14 Oct 2023 22:46:48 +0000 (01:46 +0300)
notaz/pcsx_rearmed#318

plugins/gpu_unai/gpu_inner_quantization.h

index 4368ddb..8a4e935 100644 (file)
@@ -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