aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiayuan Ren <renjiayuan1314@gmail.com>2019-02-14 16:11:59 -0800
committerjeremyk-lunarg <jeremyk@lunarg.com>2019-02-18 14:08:39 -0700
commit0b76057d4bbc1dd8f40d8f4b6248dbe1ea66c63d (patch)
treea01d58fa1ffec0ed476b2ee665e312dc9920da0e
parentfef7b739b864fef1e0d313fea02fa731d4f4547f (diff)
downloadusermoji-0b76057d4bbc1dd8f40d8f4b6248dbe1ea66c63d.tar.xz
Fix the build error on Android
Currently, the vulkaninfo is not supported on Android. But someone might use the vulkaninfo with their own makefiles crossing all the platforms including Android. This change fixed the compiling error on Android platform.
-rw-r--r--vulkaninfo/vulkaninfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vulkaninfo/vulkaninfo.c b/vulkaninfo/vulkaninfo.c
index 900311c4..2e67e628 100644
--- a/vulkaninfo/vulkaninfo.c
+++ b/vulkaninfo/vulkaninfo.c
@@ -163,7 +163,7 @@ struct AppInstance {
Window xlib_window;
#endif
#ifdef VK_USE_PLATFORM_ANDROID_KHR // TODO
- ANativeWindow *window;
+ struct ANativeWindow *window;
#endif
#ifdef VK_USE_PLATFORM_MACOS_MVK
void *window;
@@ -1149,7 +1149,7 @@ static void AppDestroyWin32Window(struct AppInstance *inst) { DestroyWindow(inst
//-----------------------------------------------------------
#if defined(VK_USE_PLATFORM_XCB_KHR) || defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_WIN32_KHR) || \
- defined(VK_USE_PLATFORM_MACOS_MVK) || defined(VK_USE_PLATFORM_WAYLAND_KHR)
+ defined(VK_USE_PLATFORM_MACOS_MVK) || defined(VK_USE_PLATFORM_WAYLAND_KHR) || defined(VK_USE_PLATFORM_ANDROID_KHR)
static void AppDestroySurface(struct AppInstance *inst) { // same for all platforms
vkDestroySurfaceKHR(inst->instance, inst->surface, NULL);
}