From 2010a22f4441240753dc0967b0b1511010825052 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 31 Aug 2024 07:04:14 -0700
Subject: [PATCH] Removed unneeded separate return statement.
---
src/render/vulkan/SDL_render_vulkan.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/render/vulkan/SDL_render_vulkan.c b/src/render/vulkan/SDL_render_vulkan.c
index fbc558e447326..cea77cb49c8ab 100644
--- a/src/render/vulkan/SDL_render_vulkan.c
+++ b/src/render/vulkan/SDL_render_vulkan.c
@@ -3164,8 +3164,7 @@ static bool VULKAN_UpdateVertexBuffer(SDL_Renderer *renderer,
if (rendererData->issueBatch) {
if (VULKAN_IssueBatch(rendererData) != VK_SUCCESS) {
- SDL_SetError("Failed to issue intermediate batch");
- return false;
+ return SDL_SetError("Failed to issue intermediate batch");
}
}
// If the existing vertex buffer isn't big enough, we need to recreate a big enough one