kmsdrm: Fix KMSDRM_Vulkan_CreateSurface() return value
This commit is contained in:
parent
8f55f48337
commit
13f88df190
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user