From 6bc768593bc71eb0f79a33236707e0ef57950a52 Mon Sep 17 00:00:00 2001 From: ziga-lunarg Date: Sat, 30 Nov 2024 10:38:35 +0100 Subject: [PATCH] layers: Check the correct micromap feature on destroy --- layers/stateless/sl_ray_tracing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/stateless/sl_ray_tracing.cpp b/layers/stateless/sl_ray_tracing.cpp index 83a0df854bc..473d9f62c80 100644 --- a/layers/stateless/sl_ray_tracing.cpp +++ b/layers/stateless/sl_ray_tracing.cpp @@ -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;