SDL_ttf: Fixed typo

From a7040ba98c2430640ba8012f7b63c34bcc2428d2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 23 Jan 2025 22:23:09 -0800
Subject: [PATCH] Fixed typo

---
 src/SDL_gpu_textengine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDL_gpu_textengine.c b/src/SDL_gpu_textengine.c
index 95922dd6..16eab888 100644
--- a/src/SDL_gpu_textengine.c
+++ b/src/SDL_gpu_textengine.c
@@ -380,7 +380,7 @@ static bool UpdateGPUTexture(SDL_GPUDevice *device, SDL_GPUTexture *texture,
 
 static bool UpdateGlyph(SDL_GPUDevice *device, AtlasGlyph *glyph, SDL_Surface *surface)
 {
-    if (glyph->rect.w > 0 || glyph->rect.h > 0) {
+    if (glyph->rect.w > 0 && glyph->rect.h > 0) {
         /* FIXME: We should update the whole texture at once or at least cache the transfer buffers */
         UpdateGPUTexture(device, glyph->atlas->texture, &glyph->rect, surface->pixels, surface->pitch);
     }