mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-25 08:44:13 +00:00
vulkan: SDL_Vulkan_CreateSurface now returns the usual int (0=ok, -1=error).
Fixes #10091.
This commit is contained in:
@@ -253,10 +253,7 @@ static int createInstance(VulkanVideoContext *context)
|
||||
|
||||
static int createSurface(VulkanVideoContext *context, SDL_Window *window)
|
||||
{
|
||||
if (!SDL_Vulkan_CreateSurface(window,
|
||||
context->instance,
|
||||
NULL,
|
||||
&context->surface)) {
|
||||
if (SDL_Vulkan_CreateSurface(window, context->instance, NULL, &context->surface) < 0) {
|
||||
context->surface = VK_NULL_HANDLE;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user