diff options
-rw-r--r-- | validation.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/validation.c b/validation.c index 6f24177..c9d2f9f 100644 --- a/validation.c +++ b/validation.c @@ -90,14 +90,15 @@ void *validation_createcb(VkInstance inst) } // validation_destroycb: Destroy the validation callback -void validation_destroycb(VkInstance inst, void *cb) +void validation_destroycb(VkInstance inst, void *_cb) { PFN_vkDestroyDebugReportCallbackEXT func; + VkDebugReportCallbackEXT *cb = _cb; func = (PFN_vkDestroyDebugReportCallbackEXT) vkGetInstanceProcAddr(inst, "vkDestroyDebugReportCallbackEXT"); if (func == NULL) eprintf("Validation: Could not destroy callback: Failed to get destructor"); - func(inst, cb, NULL); + func(inst, *cb, NULL); free(cb); } |