From bb5b19deda718c009f8987d278ebc160cf43d929 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Thu, 16 Jan 2020 08:50:50 +0100 Subject: [PATCH] Fix regression in ObjectDestroy default argument (#485) --- VulkanHppGenerator.cpp | 2 +- vulkan/vulkan.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index f08424b..36a6ae7 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -4811,7 +4811,7 @@ int main(int argc, char **argv) , m_dispatch( nullptr ) {} - ObjectDestroy( OwnerType owner, Optional allocationCallbacks = nullptr, Dispatch const &dispatch = Dispatch() ) VULKAN_HPP_NOEXCEPT + ObjectDestroy( OwnerType owner, Optional allocationCallbacks = nullptr, Dispatch const &dispatch = VULKAN_HPP_DEFAULT_DISPATCHER ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_allocationCallbacks( allocationCallbacks ) , m_dispatch( &dispatch ) diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 85ef974..88c3788 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -2749,7 +2749,7 @@ namespace VULKAN_HPP_NAMESPACE , m_dispatch( nullptr ) {} - ObjectDestroy( OwnerType owner, Optional allocationCallbacks = nullptr, Dispatch const &dispatch = Dispatch() ) VULKAN_HPP_NOEXCEPT + ObjectDestroy( OwnerType owner, Optional allocationCallbacks = nullptr, Dispatch const &dispatch = VULKAN_HPP_DEFAULT_DISPATCHER ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_allocationCallbacks( allocationCallbacks ) , m_dispatch( &dispatch )