mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1109 from dneto0/dont-crash-gipa
Don't overwrite vkGetInstanceProcAddress
This commit is contained in:
commit
7361d443a3
@ -5969,6 +5969,11 @@ std::string VulkanHppGenerator::generateDispatchLoaderDynamicCommandAssignment(
|
|||||||
CommandData const & commandData,
|
CommandData const & commandData,
|
||||||
std::string const & firstArg ) const
|
std::string const & firstArg ) const
|
||||||
{
|
{
|
||||||
|
if (commandName == "vkGetInstanceProcAddr")
|
||||||
|
{
|
||||||
|
// Don't overwite vkGetInstanceProcAddr with NULL.
|
||||||
|
return "";
|
||||||
|
}
|
||||||
std::string str = " " + commandName + " = PFN_" + commandName + "( vkGet" +
|
std::string str = " " + commandName + " = PFN_" + commandName + "( vkGet" +
|
||||||
( ( firstArg == "device" ) ? "Device" : "Instance" ) + "ProcAddr( " + firstArg + ", \"" +
|
( ( firstArg == "device" ) ? "Device" : "Instance" ) + "ProcAddr( " + firstArg + ", \"" +
|
||||||
commandName + "\" ) );\n";
|
commandName + "\" ) );\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user