Set hooked_vkCreate/DestroyInstance to be VKAPI_CALL. Refs #230

This commit is contained in:
baldurk
2016-03-31 17:40:08 +02:00
parent 1480b81490
commit 2a45c6ece9
+2 -2
View File
@@ -105,13 +105,13 @@ DefineHooks();
// need to implement vkCreateInstance and vkDestroyInstance specially,
// to create and destroy the core WrappedVulkan object
VkResult hooked_vkCreateInstance(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance)
VkResult VKAPI_CALL hooked_vkCreateInstance(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance)
{
WrappedVulkan *core = new WrappedVulkan("");
return core->vkCreateInstance(pCreateInfo, pAllocator, pInstance);
}
void hooked_vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator)
void VKAPI_CALL hooked_vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator)
{
WrappedVulkan *core = CoreDisp(instance);
core->vkDestroyInstance(instance, pAllocator);