layers: GL92, Properly remove cmd buf metadata
authorMark Lobodzinski <mark@lunarg.com>
Tue, 19 Jan 2016 23:08:36 +0000 (16:08 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 19 Jan 2016 23:08:36 +0000 (16:08 -0700)
When FreeCommandBuffers was called the helper routine was not
properly removing the command buffer tracking data.

layers/mem_tracker.cpp

index ddd55fb..f2f1871 100644 (file)
@@ -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);
     }