vulkan: SDL_Vulkan_CreateSurface now returns the usual int (0=ok, -1=error).
Fixes #10091.
This commit is contained in:
1 parent
a4f962fd46
commit
982feb7a65
26 files changed
+166
-216
No files matched your search
@@ -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