Skip to content

Commit

Permalink
Increase texture size limit to 1024. It's actually used by FF3.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 13, 2023
1 parent 859e124 commit a8b8e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/TextureCacheCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a8b8e44

Please sign in to comment.