GS/HW: Adjust max valid tex size.

Account for index 0.
This commit is contained in:
lightningterror 2025-02-08 21:38:02 +01:00
parent 865b75bcbb
commit 9b4b112a97
1 changed files with 1 additions and 1 deletions

View File

@ -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);