mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 23:16:31 +00:00
Drop VK_KHR_driver_properties on replay if it's not available
This commit is contained in:
@@ -1474,6 +1474,17 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
|
||||
|
||||
AddRequiredExtensions(false, Extensions, supportedExtensions);
|
||||
|
||||
// Drop VK_KHR_driver_properties if it's not available
|
||||
for(size_t i = 0; i < Extensions.size(); i++)
|
||||
{
|
||||
if(Extensions[i] == VK_KHR_DRIVER_PROPERTIES_EXTENSION_NAME &&
|
||||
supportedExtensions.find(Extensions[i]) == supportedExtensions.end())
|
||||
{
|
||||
Extensions.erase(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for(size_t i = 0; i < Extensions.size(); i++)
|
||||
{
|
||||
if(supportedExtensions.find(Extensions[i]) == supportedExtensions.end())
|
||||
|
||||
Reference in New Issue
Block a user