From 9b4b112a976c558579d1de2358e53e1b83df4e6a Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sat, 8 Feb 2025 21:38:02 +0100 Subject: [PATCH] GS/HW: Adjust max valid tex size. Account for index 0. --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index 8dd044e047..771df40b2d 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -952,7 +952,7 @@ GSVector2i GSRendererHW::GetValidSize(const GSTextureCache::Source* tex) // Make sure sizes are within max limit of 2048, // this shouldn't happen but if it does it needs to be addressed, // clamp the size so at least it doesn't cause a crash. - constexpr int valid_max_size = 2048; + constexpr int valid_max_size = 2047; if ((width > valid_max_size) || (height > valid_max_size)) { Console.Warning("Warning: GetValidSize out of bounds, X:%d Y:%d", width, height);