From 57eecdf5eedfefb6779ed8d9707c8f51e0cb36ae Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 18 Jul 2016 14:19:12 -0600 Subject: layers: Replace INVALID_SEMAPHORE with OBJECT_INUSE check DRAWSTATE_INVALID_SEMAPHORE was bad name for what is really another instance of DRAWSTATE_OBJECT_INUSE check. Updated the check to use the new enum and removed the doc entry for the old check which is no longer used. --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 5cfef40b..58e0ee58 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5052,7 +5052,7 @@ DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallb if (item != dev_data->semaphoreMap.end()) { if (item->second.in_use.load()) { log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT, - reinterpret_cast(semaphore), __LINE__, DRAWSTATE_INVALID_SEMAPHORE, "DS", + reinterpret_cast(semaphore), __LINE__, DRAWSTATE_OBJECT_INUSE, "DS", "Cannot delete semaphore 0x%" PRIx64 " which is in use.", reinterpret_cast(semaphore)); } dev_data->semaphoreMap.erase(semaphore); -- cgit v1.2.3