From a8a3eb01ab5d484896c8068f8e8f5f1c7163151a Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Tue, 31 Mar 2020 08:21:28 +0200 Subject: [PATCH] Fix scope for VkPhysicalDeviceFeatures2 Fixes #678 --- base/VulkanDevice.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/VulkanDevice.hpp b/base/VulkanDevice.hpp index c2d3392e..7100db60 100644 --- a/base/VulkanDevice.hpp +++ b/base/VulkanDevice.hpp @@ -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;