From 5129f881050c7009d958969351a94ffbad6fb751 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 18 Oct 2016 06:31:15 -0600 Subject: layers:Fix cmd buffer to buffer binding Bind the buffer to the cmd buffer independent of the buffer memory. Previously in the null memory case we'd bind the cmd buffer to the buffer without binding the buffer to the cmd buffer. This fixes that imbalance. --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 639c0b4b..498ffaff 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -637,9 +637,9 @@ void AddCommandBufferBindingBuffer(const layer_data *dev_data, GLOBAL_CB_NODE *c pMemInfo->command_buffer_bindings.insert(cb_node->commandBuffer); // Now update CBInfo's Mem reference list cb_node->memObjs.insert(buff_node->binding.mem); - cb_node->object_bindings.insert({reinterpret_cast(buff_node->buffer), VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT}); } // Now update cb binding for buffer + cb_node->object_bindings.insert({reinterpret_cast(buff_node->buffer), VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT}); buff_node->cb_bindings.insert(cb_node); } -- cgit v1.2.3