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;
|
||||
}
|
||||
|
||||
+1
-4
@@ -259,10 +259,7 @@ static void loadInstanceFunctions(void)
|
||||
|
||||
static void createSurface(void)
|
||||
{
|
||||
if (!SDL_Vulkan_CreateSurface(vulkanContext->window,
|
||||
vulkanContext->instance,
|
||||
NULL,
|
||||
&vulkanContext->surface)) {
|
||||
if (SDL_Vulkan_CreateSurface(vulkanContext->window, vulkanContext->instance, NULL, &vulkanContext->surface) < 0) {
|
||||
vulkanContext->surface = VK_NULL_HANDLE;
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Vulkan_CreateSurface(): %s\n", SDL_GetError());
|
||||
quit(2);
|
||||
|
||||
Reference in new issue
Block a user