From 82ffabc86af5cfd3d68a80c4bfd26408fa59f4c3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 Aug 2017 22:34:15 -0700 Subject: [PATCH] Fixed Android build --- src/video/android/SDL_androidvulkan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/android/SDL_androidvulkan.c b/src/video/android/SDL_androidvulkan.c index c8e4c8858..d7cf5c51f 100644 --- a/src/video/android/SDL_androidvulkan.c +++ b/src/video/android/SDL_androidvulkan.c @@ -123,7 +123,7 @@ SDL_bool Android_Vulkan_GetInstanceExtensions(_THIS, return SDL_FALSE; } return SDL_Vulkan_GetInstanceExtensions_Helper( - count, names, SDL_arraysize(extensionsForMir), + count, names, SDL_arraysize(extensionsForAndroid), extensionsForAndroid); } @@ -150,11 +150,11 @@ SDL_bool Android_Vulkan_CreateSurface(_THIS, if(!vkCreateAndroidSurfaceKHR) { - SDL_SetError(VK_KHR_Android_SURFACE_EXTENSION_NAME + SDL_SetError(VK_KHR_ANDROID_SURFACE_EXTENSION_NAME " extension is not enabled in the Vulkan instance."); return SDL_FALSE; } - createInfo.sType = VK_STRUCTURE_TYPE_Android_SURFACE_CREATE_INFO_KHR; + createInfo.sType = VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR; createInfo.pNext = NULL; createInfo.flags = 0; createInfo.window = windowData->native_window;