forked from KhronosGroup/Vulkan-Loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix corrupted pNext chain in vkCreateDevice
When creating a device, the loader looks for the VkDeviceGroupCreateInfo structure and replaces it with its own. This allows the loader to edit the struct. However, to do this required editing the pNext chain. Because the edited chain contained pointers to structures whose lifetimes end when the vkCreateDevice function returns, the pNext chain is now corrupted. This commit fixes that by storing a pointer to the user's VkDeviceGroupCreateInfo and fixing up the pNext chain to use that instead.
- Loading branch information
1 parent
0c7685b
commit 57d5dd5
Showing
2 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters