Proper fix for 32-bit compilation, no cast needed on debug callback

This commit is contained in:
baldurk
2016-01-23 11:16:41 +01:00
parent f0a060443b
commit 2b89393e55
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ private:
const char* pLayerPrefix,
const char* pMessage);
static VkBool32 DebugCallbackStatic(
static VkBool32 VKAPI_PTR DebugCallbackStatic(
VkDebugReportFlagsEXT flags,
VkDebugReportObjectTypeEXT objectType,
uint64_t object,
@@ -117,7 +117,7 @@ void WrappedVulkan::Initialise(VkInitParams &params)
VkDebugReportCallbackCreateInfoEXT debugInfo = {};
debugInfo.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT;
debugInfo.pNext = NULL;
debugInfo.pfnCallback = (PFN_vkDebugReportCallbackEXT)&DebugCallbackStatic;
debugInfo.pfnCallback = &DebugCallbackStatic;
debugInfo.pUserData = this;
debugInfo.flags = VK_DEBUG_REPORT_WARN_BIT_EXT|VK_DEBUG_REPORT_PERF_WARN_BIT_EXT|VK_DEBUG_REPORT_ERROR_BIT_EXT;