mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Don't overwrite vkGetInstanceProcAddress
The vk::DispatchLoaderDynamic::init(vk::VkInstance) method should note use vkGetInstanceProcAddr to overwrite vkGetInstanceProcAddr itself. vkGetInstanceProcAddr( a_valid_instance, "vkGetInstanceProcAddr" ) is required to return NULL. Fixes: 1108
This commit is contained in:
parent
7f22cbae7f
commit
935e5e68fa
@ -6066,6 +6066,11 @@ std::string VulkanHppGenerator::generateDispatchLoaderDynamicCommandAssignment(
|
||||
CommandData const & commandData,
|
||||
std::string const & firstArg ) const
|
||||
{
|
||||
if (commandName == "vkGetInstanceProcAddr")
|
||||
{
|
||||
// Don't overwite vkGetInstanceProcAddr with NULL.
|
||||
return "";
|
||||
}
|
||||
std::string str = " " + commandName + " = PFN_" + commandName + "( vkGet" +
|
||||
( ( firstArg == "device" ) ? "Device" : "Instance" ) + "ProcAddr( " + firstArg + ", \"" +
|
||||
commandName + "\" ) );\n";
|
||||
|
Loading…
Reference in New Issue
Block a user