Skip to content

Commit

Permalink
Revert "Revert "Assert for null sTypes.""
Browse files Browse the repository at this point in the history
This reverts commit 7126555.
  • Loading branch information
charles-lunarg committed Apr 18, 2021
1 parent 3c38977 commit 63f0689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/VkBootstrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ class PhysicalDeviceSelector {
#if defined(VK_API_VERSION_1_1)
template <typename T>
PhysicalDeviceSelector& add_required_extension_features(T const& features) {
assert(features.sType != 0 &&
"Features struct sType must be filled with the struct's corresponding VkStructureType enum");
criteria.extension_features.push_back(detail::ExtensionFeatures::make(features));
return *this;
}
Expand Down

0 comments on commit 63f0689

Please sign in to comment.