Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 0065392

Browse files
lightningterrorSternXD
authored andcommitted
GS/HW: Adjust max valid tex size.
Account for index 0.
1 parent 9f09a98 commit 0065392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcsx2/GS/Renderers/HW/GSRendererHW.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ GSVector2i GSRendererHW::GetValidSize(const GSTextureCache::Source* tex)
952952
// Make sure sizes are within max limit of 2048,
953953
// this shouldn't happen but if it does it needs to be addressed,
954954
// clamp the size so at least it doesn't cause a crash.
955-
constexpr int valid_max_size = 2048;
955+
constexpr int valid_max_size = 2047;
956956
if ((width > valid_max_size) || (height > valid_max_size))
957957
{
958958
Console.Warning("Warning: GetValidSize out of bounds, X:%d Y:%d", width, height);

0 commit comments

Comments
 (0)