SDL_ttf: PSP: Fix crash when rendering solid, shaded or lcd text (35ffe)

From 35ffec255c71946952f222b798321723da85bdbc Mon Sep 17 00:00:00 2001
From: Wouter Wijsman <[EMAIL REDACTED]>
Date: Wed, 25 Feb 2026 16:35:17 +0100
Subject: [PATCH] PSP: Fix crash when rendering solid, shaded or lcd text

(cherry picked from commit 8814d40b9b0b1bb168d365cc5f926fa8e8b5f463)
---
 SDL_ttf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/SDL_ttf.c b/SDL_ttf.c
index d5ca963b..eee878ca 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -139,6 +139,12 @@ int TTF_SetScript(int script) /* hb_script_t */
 /* Default: round glyph width to 4 bytes to copy them faster */
 #define HAVE_BLIT_GLYPH_32
 
+// The Playstation Portable doesn't work with either HAVE_BLIT_GLYPH setting
+#if defined (__PSP__)
+#    undef HAVE_BLIT_GLYPH_64
+#    undef HAVE_BLIT_GLYPH_32
+#endif
+
 /* Use Duff's device to unroll loops */
 //#define USE_DUFFS_LOOP