mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
kmsdrm: Fix KMSDRM_Vulkan_CreateSurface() return value
This commit is contained in:
@@ -192,7 +192,7 @@ bool KMSDRM_Vulkan_CreateSurface(SDL_VideoDevice *_this,
|
|||||||
VkDisplayPlaneAlphaFlagBitsKHR alpha_mode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
|
VkDisplayPlaneAlphaFlagBitsKHR alpha_mode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
|
||||||
|
|
||||||
VkResult result;
|
VkResult result;
|
||||||
bool ret = -1;
|
bool ret = false;
|
||||||
bool valid_gpu = false;
|
bool valid_gpu = false;
|
||||||
bool mode_found = false;
|
bool mode_found = false;
|
||||||
bool plane_supports_display = false;
|
bool plane_supports_display = false;
|
||||||
@@ -485,7 +485,7 @@ bool KMSDRM_Vulkan_CreateSurface(SDL_VideoDevice *_this,
|
|||||||
goto clean;
|
goto clean;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0; // success!
|
ret = true; // success!
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
if (physical_devices) {
|
if (physical_devices) {
|
||||||
|
|||||||
Reference in New Issue
Block a user