Skip to content

Commit

Permalink
Fix best practices warning when in VK 1.1 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclark2016 authored and charles-lunarg committed May 6, 2022
1 parent bf4e2f0 commit adee12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VkBootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit adee12a

Please sign in to comment.