From 40baafb0c3602166fd8a371ff4a97ff3681e970b Mon Sep 17 00:00:00 2001 From: Jeremy Hayes Date: Tue, 13 Dec 2016 13:09:44 -0700 Subject: layers: Remove redundant code This is already being checked in the object tracker layer. Change-Id: Ie1d5776810c3f8a3df7b9ef920d02e90c0d239b4 --- layers/core_validation.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index c92171b9..9d29f0d8 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -768,10 +768,7 @@ static bool SetMemBinding(layer_data *dev_data, VkDeviceMemory mem, uint64_t han const char *apiName) { bool skip_call = false; // It's an error to bind an object to NULL memory - if (mem == VK_NULL_HANDLE) { - skip_call = log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, type, handle, __LINE__, MEMTRACK_INVALID_MEM_OBJ, - "MEM", "In %s, attempting to Bind Obj(0x%" PRIxLEAST64 ") to NULL", apiName, handle); - } else { + if (mem != VK_NULL_HANDLE) { BINDABLE *mem_binding = GetObjectMemBinding(dev_data, handle, type); assert(mem_binding); // TODO : Add check here to make sure object isn't sparse -- cgit v1.2.3