Skip to content

Commit

Permalink
layers: Fix VK_EXT_robustness2 check
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg authored Jan 10, 2025
1 parent fbdbdbc commit 25cb209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/state_tracker/state_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void ValidationStateTracker::PostCreateDevice(const VkDeviceCreateInfo *pCreateI
phys_dev_extensions.find(vvl::Extension::_VK_EXT_image_robustness) != phys_dev_extensions.end();

if (IsExtEnabled(instance_extensions.vk_khr_get_physical_device_properties2) &&
phys_dev_extensions.find(vvl::Extension::_VK_EXT_image_robustness) != phys_dev_extensions.end()) {
phys_dev_extensions.find(vvl::Extension::_VK_EXT_robustness2) != phys_dev_extensions.end()) {
VkPhysicalDeviceRobustness2FeaturesEXT robustness_2_features = vku::InitStructHelper();
VkPhysicalDeviceFeatures2 features2 = vku::InitStructHelper(&robustness_2_features);
DispatchGetPhysicalDeviceFeatures2Helper(physical_device, &features2);
Expand Down

0 comments on commit 25cb209

Please sign in to comment.