diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-01-20 09:01:24 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-01-20 11:50:58 -0700 |
| commit | 0278845051a6f0b68c47990b5d6ce725751ffe9e (patch) | |
| tree | 8e13948bc70c2852b55a49ea372d94f680c047c6 /layers/draw_state.cpp | |
| parent | bf6bcad21e911637db8f3769bdfd7dd7ceb61701 (diff) | |
| download | usermoji-0278845051a6f0b68c47990b5d6ce725751ffe9e.tar.xz | |
layers: MR148/GL82, Don't memset PIPELINE_NODE in draw_state
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.
Diffstat (limited to 'layers/draw_state.cpp')
| -rw-r--r-- | layers/draw_state.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 8954a89f..c85598d4 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -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 |
