SDL_ttf: Fixed colors in the GPU text engine

From 152189b02c31b2d5bfff76047a530fe546193b6f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 30 Jan 2025 09:52:09 -0800
Subject: [PATCH] Fixed colors in the GPU text engine

The glyph surfaces are SDL_PIXELFORMAT_ARGB8888
---
 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 29e6f145..5f6a0b2d 100644
--- a/src/SDL_gpu_textengine.c
+++ b/src/SDL_gpu_textengine.c
@@ -181,7 +181,7 @@ static AtlasTexture *CreateAtlas(SDL_GPUDevice *device, int atlas_texture_size)
 
     SDL_GPUTextureCreateInfo info = { 0 };
     info.type = SDL_GPU_TEXTURETYPE_2D;
-    info.format = SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UNORM;
+    info.format = SDL_GPU_TEXTUREFORMAT_B8G8R8A8_UNORM;
     info.usage = SDL_GPU_TEXTUREUSAGE_SAMPLER | SDL_GPU_TEXTUREUSAGE_COLOR_TARGET;
     info.width = atlas_texture_size;
     info.height = atlas_texture_size;