From 28e486083e062e61948871e65b5b398f2b94be6c Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sat, 5 Mar 2016 11:45:35 +0100 Subject: [PATCH] Android compatibility for vulkandebug --- base/vulkandebug.cpp | 2 +- base/vulkandebug.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/base/vulkandebug.cpp b/base/vulkandebug.cpp index b5fbffab..cdede85e 100644 --- a/base/vulkandebug.cpp +++ b/base/vulkandebug.cpp @@ -91,7 +91,7 @@ namespace vkDebug void freeDebugCallback(VkInstance instance) { - if (msgCallback != nullptr) + if (msgCallback != NULL) { DestroyDebugReportCallback(instance, msgCallback, nullptr); } diff --git a/base/vulkandebug.h b/base/vulkandebug.h index 451eefab..6b722a85 100644 --- a/base/vulkandebug.h +++ b/base/vulkandebug.h @@ -14,7 +14,9 @@ #include #include #include -#else +#endif +#ifdef __ANDROID__ +#include "vulkanandroid.h" #endif namespace vkDebug