From a8b8e44de111a93e3fb719372467aec519e544e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 13 Dec 2023 22:18:54 +0100 Subject: [PATCH] Increase texture size limit to 1024. It's actually used by FF3. --- GPU/Common/TextureCacheCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index af3f493d0b9b..a3880143fcd5 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -2822,7 +2822,7 @@ bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan &plan, TexCacheEnt plan.scaleFactor = 1; } else if (!g_DoubleTextureCoordinates) { // Refuse to load invalid-ly sized textures, which can happen through display list corruption. - if (plan.w > 512 || plan.h > 512) { + if (plan.w > 1024 || plan.h > 1024) { ERROR_LOG(G3D, "Bad texture dimensions: %dx%d", plan.w, plan.h); return false; }