mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Proper fix for 32-bit compilation, no cast needed on debug callback
This commit is contained in:
@@ -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 ¶ms)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user