aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layers/core_validation.cpp5
1 files changed, 1 insertions, 4 deletions
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