Fix handling of instance extensions in vulkan tests

This commit is contained in:
baldurk committed 2020-09-11 18:51:27 +01:00
1 parent 8ca96aa83a
commit 925b49daa6
1 file changed
+3 -3
+3 -3
View File
@@ -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<VkExtensionProperties> supportedExts;
CHECK_VKR(vkh::enumerateDeviceExtensionProperties(supportedExts, phys, NULL));