From 8bfbd8b76a4d15ff758d49d8685d1fb7158d01fb Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 9 Jun 2015 10:48:55 -0600 Subject: [PATCH] layers: XChange #58 fix - Correctly copy Vtx Bindings --- layers/draw_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 3306e371..4496765a 100755 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -425,7 +425,7 @@ static void initPipeline(PIPELINE_NODE* pPipeline, const VkGraphicsPipelineCreat if (pPipeline->vtxBindingCount) { pPipeline->pVertexBindingDescriptions = new VkVertexInputBindingDescription[pPipeline->vtxBindingCount]; bufferSize = pPipeline->vtxBindingCount * sizeof(VkVertexInputBindingDescription); - memcpy((void*)pPipeline->pVertexBindingDescriptions, ((VkPipelineVertexInputCreateInfo*)pTrav)->pVertexAttributeDescriptions, bufferSize); + memcpy((void*)pPipeline->pVertexBindingDescriptions, ((VkPipelineVertexInputCreateInfo*)pTrav)->pVertexBindingDescriptions, bufferSize); } pPipeline->vtxAttributeCount = pVICI->attributeCount; if (pPipeline->vtxAttributeCount) { -- 2.34.1