layers: For ObjectTracker don't flag error for un-deleted Queues
authorTobin Ehlis <tobin@lunarg.com>
Fri, 17 Apr 2015 19:07:30 +0000 (13:07 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Fri, 17 Apr 2015 19:07:30 +0000 (13:07 -0600)
vk-layer-generate.py

index edb52210bb2b572a5ea75d2b2620b055f2a9c574..d7a5a992d18a1fd8544eb7825d2c1847d8760b15 100755 (executable)
@@ -1216,7 +1216,7 @@ class ObjectTrackerSubcommand(Subcommand):
                 destroy_line += '            objNode *pDel = pTrav;\n'
                 destroy_line += '            pTrav = pTrav->pNextGlobal;\n'
                 destroy_line += '            ll_destroy_obj((void*)(pDel->obj.pObj));\n'
-                destroy_line += '        } else if (pTrav->obj.objType == VkObjectTypePhysicalDevice) {\n'
+                destroy_line += '        } else if ((pTrav->obj.objType == VkObjectTypePhysicalDevice) || (pTrav->obj.objType == VkObjectTypeQueue)) {\n'
                 destroy_line += '            // Cannot destroy physical device so ignore\n'
                 destroy_line += '            pTrav = pTrav->pNextGlobal;\n'
                 destroy_line += '        } else {\n'