mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Fix instance-level functions being loaded with vkGetDeviceProcAddr in vk::DispatchLoaderDynamic::init (#257)
This commit is contained in:
parent
127de1bf93
commit
e4447ba76e
@ -5122,7 +5122,8 @@ void VulkanHppGenerator::writeDelegationClassDynamic(std::ostream &os)
|
||||
enterProtect(os, command.second.protect);
|
||||
if (!command.second.params.empty()
|
||||
&& m_handles.find(command.second.params[0].type) != m_handles.end()
|
||||
&& command.second.params[0].type != "Instance")
|
||||
&& command.second.params[0].type != "Instance"
|
||||
&& command.second.params[0].type != "PhysicalDevice")
|
||||
{
|
||||
os << " vk" << startUpperCase(command.second.fullName) << " = PFN_vk" << startUpperCase(command.second.fullName)
|
||||
<< "(device ? device.getProcAddr( \"vk" << startUpperCase(command.second.fullName) << "\") : instance.getProcAddr( \"vk" << startUpperCase(command.second.fullName) << "\"));" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user