From fca7acf469b75437f38b1210dd9ed4ba000f4cf0 Mon Sep 17 00:00:00 2001
From: Alexander Gauggel <agauggel@uni-koblenz.de>
Date: Thu, 10 Jun 2021 11:47:56 +0200
Subject: [PATCH] [#65] Fix startup crash

---
 src/vkcv/PipelineManager.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/vkcv/PipelineManager.cpp b/src/vkcv/PipelineManager.cpp
index e3261821..6a0a42b2 100644
--- a/src/vkcv/PipelineManager.cpp
+++ b/src/vkcv/PipelineManager.cpp
@@ -335,9 +335,9 @@ namespace vkcv
         const vk::PushConstantRange pushConstantRange(vk::ShaderStageFlagBits::eAll, 0, matrixPushConstantSize);
 
         vk::PipelineLayoutCreateInfo pipelineLayoutCreateInfo( // TODO: Check this. I'm not sure if this is correct
-                {},
-                {}, // TODO: For now no Descriptor Set
-                (pushConstantRange));
+            {},
+            {}, // TODO: For now no Descriptor Set
+            {});// (pushConstantRange)); push constant range must not be size 0, either do not specify or or set size
 
         vk::PipelineLayout vkPipelineLayout{};
         if (m_Device.createPipelineLayout(&pipelineLayoutCreateInfo, nullptr, &vkPipelineLayout) != vk::Result::eSuccess)
-- 
GitLab