From b51c6551d6ef256c535e9d570d71c97dfd9117c0 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 10 Sep 2024 08:37:24 -0700
Subject: [PATCH] Changed SDL_GPU_TEXTUREFORMAT_INVALID to 0
This is more in line with SDL's convention and makes it easier to do zero-based structure initialization.
---
include/SDL3/SDL_gpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/SDL3/SDL_gpu.h b/include/SDL3/SDL_gpu.h
index ffbc51a9692b7..91788e516b606 100644
--- a/include/SDL3/SDL_gpu.h
+++ b/include/SDL3/SDL_gpu.h
@@ -384,7 +384,7 @@ typedef enum SDL_GPUIndexElementSize
*/
typedef enum SDL_GPUTextureFormat
{
- SDL_GPU_TEXTUREFORMAT_INVALID = -1,
+ SDL_GPU_TEXTUREFORMAT_INVALID = 0,
/* Unsigned Normalized Float Color Formats */
SDL_GPU_TEXTUREFORMAT_A8_UNORM,