From 91312a5bc91de8b089c20b6385b66fa1577697d3 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 14 Dec 2024 20:19:27 +0100
Subject: [PATCH] TTF_GetGlyphImage returns NULL on invalid input
---
src/SDL_ttf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 74bc4367..764e0d90 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -2868,7 +2868,7 @@ SDL_Surface *TTF_GetGlyphImage(TTF_Font *font, Uint32 ch)
{
FT_UInt idx;
- TTF_CHECK_FONT(font, false);
+ TTF_CHECK_FONT(font, NULL);
idx = get_char_index(font, ch);
if (idx == 0) {