diff --git a/src/Magnum/Vk/Device.cpp b/src/Magnum/Vk/Device.cpp index ab97f50fa..7ee8d9ae5 100644 --- a/src/Magnum/Vk/Device.cpp +++ b/src/Magnum/Vk/Device.cpp @@ -115,11 +115,13 @@ DeviceCreateInfo::DeviceCreateInfo(DeviceProperties& deviceProperties, const Ext extensionProperties = &*extensionPropertiesStorage; } - /* Only if we don't have Vulkan 1.1, on which this is core */ - if(_state->version < Version::Vk11 && extensionProperties->isSupported()) - addEnabledExtensions(); - if(_state->version < Version::Vk11 && extensionProperties->isSupported()) - addEnabledExtensions(); + /* Only if we don't have Vulkan 1.1, on which these are core */ + if(_state->version < Version::Vk11) { + if(extensionProperties->isSupported()) + addEnabledExtensions(); + if(extensionProperties->isSupported()) + addEnabledExtensions(); + } } /* Conservatively populate the device properties.