kmsdrm: Fix KMSDRM_Vulkan_CreateSurface() return value

This commit is contained in:
Cameron Gutman 2024-09-23 23:33:15 -05:00
parent 8f55f48337
commit 13f88df190

View File

@ -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) {