aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-07-18 14:19:12 -0600
committerTobin Ehlis <tobine@google.com>2016-07-19 13:38:59 -0600
commit57eecdf5eedfefb6779ed8d9707c8f51e0cb36ae (patch)
treebbdf3c9e80ebb91858b4c758257225a9c9923862 /layers/core_validation.cpp
parent3d9443e5b53c8c62ffcfe106932729611bf43c7c (diff)
downloadusermoji-57eecdf5eedfefb6779ed8d9707c8f51e0cb36ae.tar.xz
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.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint64_t &>(semaphore), __LINE__, DRAWSTATE_INVALID_SEMAPHORE, "DS",
+ reinterpret_cast<uint64_t &>(semaphore), __LINE__, DRAWSTATE_OBJECT_INUSE, "DS",
"Cannot delete semaphore 0x%" PRIx64 " which is in use.", reinterpret_cast<uint64_t &>(semaphore));
}
dev_data->semaphoreMap.erase(semaphore);