Skip to content

Commit 7bf8023

Browse files
committed
Don't do the texture size check for the built-in font texture.
Fixes #18483 Fixes #18479
1 parent 7e5090c commit 7bf8023

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

GPU/Common/TextureCacheCommon.cpp

+6-8
Original file line numberDiff line numberDiff line change
@@ -2812,19 +2812,17 @@ bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan &plan, TexCacheEnt
28122812
plan.w = gstate.getTextureWidth(0);
28132813
plan.h = gstate.getTextureHeight(0);
28142814

2815-
if (!g_DoubleTextureCoordinates) {
2816-
// Refuse to load invalid-ly sized textures, which can happen through display list corruption.
2817-
if (plan.w > 512 || plan.h > 512) {
2818-
ERROR_LOG(G3D, "Bad texture dimensions: %dx%d", plan.w, plan.h);
2819-
return false;
2820-
}
2821-
}
2822-
28232815
bool isPPGETexture = entry->addr >= PSP_GetKernelMemoryBase() && entry->addr < PSP_GetKernelMemoryEnd();
28242816

28252817
// Don't scale the PPGe texture.
28262818
if (isPPGETexture) {
28272819
plan.scaleFactor = 1;
2820+
} else if (!g_DoubleTextureCoordinates) {
2821+
// Refuse to load invalid-ly sized textures, which can happen through display list corruption.
2822+
if (plan.w > 512 || plan.h > 512) {
2823+
ERROR_LOG(G3D, "Bad texture dimensions: %dx%d", plan.w, plan.h);
2824+
return false;
2825+
}
28282826
}
28292827

28302828
if (PSP_CoreParameter().compat.flags().ForceLowerResolutionForEffectsOn && gstate.FrameBufStride() < 0x1E0) {

0 commit comments

Comments
 (0)