diff --git a/util/test/demos/vk/vk_test.cpp b/util/test/demos/vk/vk_test.cpp index 94fec6bc8..981e5f3cc 100644 --- a/util/test/demos/vk/vk_test.cpp +++ b/util/test/demos/vk/vk_test.cpp @@ -414,6 +414,9 @@ void VulkanGraphicsTest::Prepare(int argc, char **argv) CHECK_VKR(vkh::enumerateInstanceLayerProperties(availInstLayers)); CHECK_VKR(vkh::enumerateInstanceExtensionProperties(availInstExts, NULL)); + instExts = enabledInstExts; + instLayers = enabledLayers; + for(const char *l : instLayers) { bool layerSupported = false; @@ -462,9 +465,6 @@ void VulkanGraphicsTest::Prepare(int argc, char **argv) } } - instExts = enabledInstExts; - instLayers = enabledLayers; - std::vector supportedExts; CHECK_VKR(vkh::enumerateDeviceExtensionProperties(supportedExts, phys, NULL));