From 3eb49ac8627500dd5a2960c278b4206c5c0374da Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 8 Sep 2024 12:42:52 +0200
Subject: [PATCH] vulken: VULKAN_CreateTexture returns a boolean
Fixes regression introduced by 9ff3446f036094bc005ef119e0cf07fc9b503b8e
VK_SUCCESS == 0, where success needs to return true (1).
---
src/render/vulkan/SDL_render_vulkan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/render/vulkan/SDL_render_vulkan.c b/src/render/vulkan/SDL_render_vulkan.c
index 750a56ffb2238..ea0dc19c0db26 100644
--- a/src/render/vulkan/SDL_render_vulkan.c
+++ b/src/render/vulkan/SDL_render_vulkan.c
@@ -2674,7 +2674,7 @@ static bool VULKAN_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, S
return result;
}
}
- return result;
+ return true;
}
static void VULKAN_DestroyTexture(SDL_Renderer *renderer,