Skip to content

Commit

Permalink
GPU: Fix unhandled R16G16_UNORM in SDL_GPUTextureFormatTexelBlockSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Aug 30, 2024
1 parent f6fc5e2 commit 70994fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpu/SDL_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 70994fd

Please sign in to comment.