mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
If no enabled features struct was passed, we need to insert our own
This commit is contained in:
@@ -1728,7 +1728,7 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
|
||||
// patch the enabled features
|
||||
if(enabledFeatures2)
|
||||
enabledFeatures2->features = enabledFeatures;
|
||||
else if(createInfo.pEnabledFeatures)
|
||||
else
|
||||
createInfo.pEnabledFeatures = &enabledFeatures;
|
||||
|
||||
uint32_t numExts = 0;
|
||||
@@ -2088,7 +2088,7 @@ VkResult WrappedVulkan::vkCreateDevice(VkPhysicalDevice physicalDevice,
|
||||
// patch the enabled features
|
||||
if(enabledFeatures2)
|
||||
enabledFeatures2->features = enabledFeatures;
|
||||
else if(createInfo.pEnabledFeatures)
|
||||
else
|
||||
createInfo.pEnabledFeatures = &enabledFeatures;
|
||||
|
||||
VkResult ret;
|
||||
|
||||
Reference in New Issue
Block a user