From 234467ac23b74b15bd829220844843d74deeb783 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Wed, 12 Oct 2016 13:18:20 -0600 Subject: layers:Fix framebuffer cmd buffer binding Wasn't correctly establishing binding between framebuffer object and cmd buffer object that it's used in. Updated code to use standard addCommandBufferBinding() function. --- layers/core_validation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index fc1614d0..71e7406b 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -7045,7 +7045,9 @@ AllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pCrea // Add bindings between the given cmd buffer & framebuffer and the framebuffer's children static void AddFramebufferBinding(layer_data *dev_data, GLOBAL_CB_NODE *cb_state, FRAMEBUFFER_STATE *fb_state) { - fb_state->cb_bindings.insert(cb_state); + addCommandBufferBinding(&fb_state->cb_bindings, + {reinterpret_cast(fb_state->framebuffer), VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT}, + cb_state); for (auto attachment : fb_state->attachments) { auto view_state = attachment.view_state; if (view_state) { -- cgit v1.2.3