From 925b49daa6b82fcf729583618ac721d26f7fd391 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 11 Sep 2020 18:51:27 +0100 Subject: [PATCH] Fix handling of instance extensions in vulkan tests --- util/test/demos/vk/vk_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));