From fd6f47f5ca25e2f731a0874a1357044c82039f00 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 11 Jul 2023 16:06:37 +0100 Subject: [PATCH] GS/HW: Tempfix alignment problem with texture replacements --- pcsx2/GS/GS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2/GS/GS.cpp b/pcsx2/GS/GS.cpp index 0401efabe4..100a82bf0d 100644 --- a/pcsx2/GS/GS.cpp +++ b/pcsx2/GS/GS.cpp @@ -931,7 +931,7 @@ std::pair GSGetRGBA8AlphaMinMax(const void* data, u32 width, u32 height, const u8* rptr = ptr; for (u32 c = 0; c < width; c += 4) { - const GSVector4i v = GSVector4i::load(rptr); + const GSVector4i v = GSVector4i::load(rptr); rptr += sizeof(GSVector4i); minc = minc.min_u32(v); maxc = maxc.max_u32(v); @@ -956,13 +956,13 @@ std::pair GSGetRGBA8AlphaMinMax(const void* data, u32 width, u32 height, const u8* rptr = ptr; for (u32 c = 0; c < aligned_width; c += 4) { - const GSVector4i v = GSVector4i::load(rptr); + const GSVector4i v = GSVector4i::load(rptr); rptr += sizeof(GSVector4i); minc = minc.min_u32(v); maxc = maxc.max_u32(v); } - const GSVector4i v = GSVector4i::load(rptr); + const GSVector4i v = GSVector4i::load(rptr); minc = minc.min_u32(v | last_mask_or); maxc = maxc.max_u32(v & last_mask_and);