aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-07-18 14:26:18 -0600
committerTobin Ehlis <tobine@google.com>2016-07-19 13:38:59 -0600
commit89172c725273865e3986098479efd00a14ccf749 (patch)
tree863ec8b1d99edc886d30051401c630bc93b5e043 /layers/core_validation.cpp
parent57eecdf5eedfefb6779ed8d9707c8f51e0cb36ae (diff)
downloadusermoji-89172c725273865e3986098479efd00a14ccf749.tar.xz
layers: Replace INVALID_EVENT check with OBJECT_INUSE
If an event being destroyed is in use, the correct error enum to use is DRAWSTATE_OBJECT_INUSE.
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 58e0ee58..9d76eee3 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5070,7 +5070,7 @@ VKAPI_ATTR void VKAPI_CALL DestroyEvent(VkDevice device, VkEvent event, const Vk
if (event_node->in_use.load()) {
skip_call |= log_msg(
dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT,
- reinterpret_cast<uint64_t &>(event), __LINE__, DRAWSTATE_INVALID_EVENT, "DS",
+ reinterpret_cast<uint64_t &>(event), __LINE__, DRAWSTATE_OBJECT_INUSE, "DS",
"Cannot delete event 0x%" PRIx64 " which is in use by a command buffer.", reinterpret_cast<uint64_t &>(event));
}
// Any bound cmd buffers are now invalid