From 367d298b95992343be6590fe860ddf6970f4d3dc Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Tue, 19 Jan 2016 16:08:36 -0700 Subject: [PATCH] layers: GL92, Properly remove cmd buf metadata When FreeCommandBuffers was called the helper routine was not properly removing the command buffer tracking data. --- layers/mem_tracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index ddd55fb..f2f1871 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -180,7 +180,7 @@ delete_cmd_buf_info( VkBool32 result = VK_TRUE; result = clear_cmd_buf_and_mem_references(my_data, cb); // Delete the CBInfo info - if (result == VK_TRUE) { + if (result != VK_TRUE) { my_data->commandPoolMap[commandPool].pCommandBuffers.remove(cb); my_data->cbMap.erase(cb); } -- 2.7.4