Only add physical device properties 2 extension if using Vulkan 1.0

This commit is contained in:
sean 2021-10-13 23:06:25 +02:00 committed by Charles Giessen
parent 5140be1d4d
commit fb8a48779d

View File

@ -615,7 +615,8 @@ detail::Result<Instance> InstanceBuilder::build() const {
} }
bool supports_properties2_ext = detail::check_extension_supported( bool supports_properties2_ext = detail::check_extension_supported(
system.available_extensions, VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); system.available_extensions, VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);
if (supports_properties2_ext) {
if (supports_properties2_ext && api_version < VK_API_VERSION_1_1) {
extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);
} }