From 13f88df19015941e24aa2c623dd3a65707962429 Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[EMAIL REDACTED]>
Date: Mon, 23 Sep 2024 23:33:15 -0500
Subject: [PATCH] kmsdrm: Fix KMSDRM_Vulkan_CreateSurface() return value
---
src/video/kmsdrm/SDL_kmsdrmvulkan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/video/kmsdrm/SDL_kmsdrmvulkan.c b/src/video/kmsdrm/SDL_kmsdrmvulkan.c
index c32adad91b4bf..ef6b39edec34c 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvulkan.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvulkan.c
@@ -192,7 +192,7 @@ bool KMSDRM_Vulkan_CreateSurface(SDL_VideoDevice *_this,
VkDisplayPlaneAlphaFlagBitsKHR alpha_mode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
VkResult result;
- bool ret = -1;
+ bool ret = false;
bool valid_gpu = false;
bool mode_found = false;
bool plane_supports_display = false;
@@ -485,7 +485,7 @@ bool KMSDRM_Vulkan_CreateSurface(SDL_VideoDevice *_this,
goto clean;
}
- ret = 0; // success!
+ ret = true; // success!
clean:
if (physical_devices) {