Fix scope for VkPhysicalDeviceFeatures2

Fixes #678
This commit is contained in:
Sascha Willems 2020-03-31 08:21:28 +02:00
parent 67f1c2904c
commit a8a3eb01ab

View file

@ -300,8 +300,8 @@ namespace vks
deviceCreateInfo.pEnabledFeatures = &enabledFeatures;
// If a pNext(Chain) has been passed, we need to add it to the device creation info
VkPhysicalDeviceFeatures2 physicalDeviceFeatures2{};
if (pNextChain) {
VkPhysicalDeviceFeatures2 physicalDeviceFeatures2{};
physicalDeviceFeatures2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2;
physicalDeviceFeatures2.features = enabledFeatures;
physicalDeviceFeatures2.pNext = pNextChain;