Skip to content

Commit

Permalink
layers: Check the correct micromap feature on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Nov 30, 2024
1 parent a62cf6e commit 6bc7685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layers/stateless/sl_ray_tracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1874,10 +1874,10 @@ bool StatelessValidation::manual_PreCallValidateDestroyMicromapEXT(
const VkAllocationCallbacks* pAllocator, const ErrorObject& error_obj) const {
bool skip = false;

if (!enabled_features.micromapHostCommands) {
if (!enabled_features.micromap) {
// Adding in https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/7023
skip |= LogError("UNASSIGNED-vkDestroyMicromapEXT-micromapHostCommands-feature", device, error_obj.location,
"micromapHostCommands feature was not enabled.");
"micromap feature was not enabled.");
}

return skip;
Expand Down

0 comments on commit 6bc7685

Please sign in to comment.