diff options
| author | Jeremy Hayes <jeremy@lunarg.com> | 2016-12-01 11:39:42 -0700 |
|---|---|---|
| committer | Jeremy Hayes <jeremy-lunarg@users.noreply.github.com> | 2016-12-01 15:35:01 -0700 |
| commit | 28f469d4383b6a5ffb26dc7d885e58a9c5d44a62 (patch) | |
| tree | 991c2bc0a20aee69f1195edf39182a0b2a608627 /layers/core_validation.cpp | |
| parent | b6a8760475199cd8ed3e127d393829e6e23f81f6 (diff) | |
| download | usermoji-28f469d4383b6a5ffb26dc7d885e58a9c5d44a62.tar.xz | |
layers: remove unnecessary log_msg
Change-Id: I2ea237e46b028c0d2afa3a0f559eef42d8639a25
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index ea852852..d2b83aa0 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -687,11 +687,8 @@ static void clear_cmd_buf_and_mem_references(layer_data *dev_data, const VkComma static bool ClearMemoryObjectBinding(layer_data *dev_data, uint64_t handle, VkDebugReportObjectTypeEXT type, VkDeviceMemory mem) { DEVICE_MEM_INFO *mem_info = getMemObjInfo(dev_data, mem); // This obj is bound to a memory object. Remove the reference to this object in that memory object's list - if (mem_info && !mem_info->obj_bindings.erase({handle, type})) { - return log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, type, handle, __LINE__, MEMTRACK_INVALID_OBJECT, - "MEM", "While trying to clear mem binding for %s obj 0x%" PRIxLEAST64 - ", unable to find that object referenced by mem obj 0x%" PRIxLEAST64, - object_type_to_string(type), handle, (uint64_t)mem); + if (mem_info) { + mem_info->obj_bindings.erase({handle, type}); } return false; } |
