Fix best practices warning when in VK 1.1 or higher

This commit is contained in:
Nicholaus Clark 2022-04-20 23:46:30 -05:00 committed by Charles Giessen
parent bf4e2f073b
commit adee12a0d9

View File

@ -610,7 +610,7 @@ detail::Result<Instance> InstanceBuilder::build() const {
bool supports_properties2_ext =
detail::check_extension_supported(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_0) {
extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);
}