The loader_create_device_terminator had an incorrect calling convention. This
caused the ESP pointer to not get properly restored after the function was
called by a 32-bit application.
return err;
}
-VkResult loader_create_device_terminator(
+VKAPI_ATTR VkResult VKAPI_CALL loader_create_device_terminator(
VkPhysicalDevice physicalDevice,
const VkDeviceCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkPhysicalDevice physicalDevice,
VkPhysicalDeviceMemoryProperties * pProperties);
-VkResult loader_create_device_terminator(
+VKAPI_ATTR VkResult VKAPI_CALL loader_create_device_terminator(
VkPhysicalDevice physicalDevice,
const VkDeviceCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,