aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-01-20 09:01:24 -0700
committerMark Lobodzinski <mark@lunarg.com>2016-01-20 11:50:58 -0700
commit0278845051a6f0b68c47990b5d6ce725751ffe9e (patch)
tree8e13948bc70c2852b55a49ea372d94f680c047c6 /layers/draw_state.cpp
parentbf6bcad21e911637db8f3769bdfd7dd7ceb61701 (diff)
downloadusermoji-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.cpp1
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