From 5b9a4a4450d71beabb113336906b68f781b28427 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Thu, 17 Sep 2015 16:33:58 -0600 Subject: layers: Update DrawState array of PIPELINE_NODEs to be vector --- layers/draw_state.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 78304fb4..83377115 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1740,7 +1740,8 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateGraphicsPipelines(VkDevice device, VkPipe // 2. Create state is then validated (which uses flags setup during shadowing) // 3. If everything looks good, we'll then create the pipeline and add NODE to pipelineMap VkBool32 skipCall = VK_FALSE; - PIPELINE_NODE* pPipeNode[count] = {}; + // TODO : Improve this data struct w/ unique_ptrs so cleanup below is automatic + vector pPipeNode(count); uint32_t i=0; loader_platform_thread_lock_mutex(&globalLock); for (i=0; i