From 70994fd92e0885945440a38a6f3de5fb36c48022 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Fri, 30 Aug 2024 18:02:00 +0200 Subject: [PATCH] GPU: Fix unhandled R16G16_UNORM in SDL_GPUTextureFormatTexelBlockSize() --- src/gpu/SDL_gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c index 0c63b9d33dc2e..20a7497a54504 100644 --- a/src/gpu/SDL_gpu.c +++ b/src/gpu/SDL_gpu.c @@ -532,6 +532,7 @@ Uint32 SDL_GPUTextureFormatTexelBlockSize( case SDL_GPU_TEXTUREFORMAT_R10G10B10A2_UNORM: case SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UINT: case SDL_GPU_TEXTUREFORMAT_R16G16_UINT: + case SDL_GPU_TEXTUREFORMAT_R16G16_UNORM: return 4; case SDL_GPU_TEXTUREFORMAT_R16G16B16A16_FLOAT: case SDL_GPU_TEXTUREFORMAT_R16G16B16A16_UNORM: