layers: MR148/GL82, Don't memset PIPELINE_NODE in draw_state
authorTobin Ehlis <tobine@google.com>
Wed, 20 Jan 2016 16:01:24 +0000 (09:01 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 20 Jan 2016 18:50:58 +0000 (11:50 -0700)
Remove memset of PIPELINE_NODE from Compute Pipeline creation.
Default constructor handles initialization so no need to memset and this was
causing a crash due to corrupting the active_sets std::set.

layers/draw_state.cpp

index 8954a89..c85598d 100644 (file)
@@ -3684,7 +3684,6 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines(
 
         // Create and initialize internal tracking data structure
         pPipeNode[i] = new PIPELINE_NODE;
-        memset((void*)pPipeNode[i], 0, sizeof(PIPELINE_NODE));
         memcpy(&pPipeNode[i]->computePipelineCI, (const void*)&pCreateInfos[i], sizeof(VkComputePipelineCreateInfo));
 
         // TODO: Add Compute Pipeline Verification