[Commits] SDL: Fixed Android build

libsdl.org revision control commits-owner at libsdl.org
Sun Aug 27 22:34:20 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/2f2558b2ebcf
changeset: 11374:2f2558b2ebcf
user:      Sam Lantinga <slouken at libsdl.org>
date:      Sun Aug 27 22:34:15 2017 -0700
description:
Fixed Android build

diffstat:

 src/video/android/SDL_androidvulkan.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 1a70b29cbb7b -r 2f2558b2ebcf src/video/android/SDL_androidvulkan.c
--- a/src/video/android/SDL_androidvulkan.c	Sun Aug 27 22:27:45 2017 -0700
+++ b/src/video/android/SDL_androidvulkan.c	Sun Aug 27 22:34:15 2017 -0700
@@ -123,7 +123,7 @@
         return SDL_FALSE;
     }
     return SDL_Vulkan_GetInstanceExtensions_Helper(
-            count, names, SDL_arraysize(extensionsForMir),
+            count, names, SDL_arraysize(extensionsForAndroid),
             extensionsForAndroid);
 }
 
@@ -150,11 +150,11 @@
 
     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;


More information about the commits mailing list