From 791b6638f09bc7a05243e85ca35e779db21624bc Mon Sep 17 00:00:00 2001 From: Vanessa Karolek <vaka1997@uni-koblenz.de> Date: Wed, 1 Sep 2021 14:47:20 +0200 Subject: [PATCH] [#92] fix error with VK_NULL_HANDLE --- src/vkcv/DescriptorManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vkcv/DescriptorManager.cpp b/src/vkcv/DescriptorManager.cpp index e7ae9ea2..3d014fce 100644 --- a/src/vkcv/DescriptorManager.cpp +++ b/src/vkcv/DescriptorManager.cpp @@ -79,7 +79,7 @@ namespace vkcv } //create the descriptor set's layout from the binding data gathered above - vk::DescriptorSetLayout vulkanHandle = VK_NULL_HANDLE; + vk::DescriptorSetLayout vulkanHandle = nullptr; vk::DescriptorSetLayoutCreateInfo layoutInfo({}, bindingsVector); auto result = m_Device.createDescriptorSetLayout(&layoutInfo, nullptr, &vulkanHandle); if (result != vk::Result::eSuccess) { @@ -96,7 +96,7 @@ namespace vkcv { //create and allocate the set based on the layout provided DescriptorSetLayout setLayout = m_DescriptorSetLayouts[setLayoutHandle.getId()]; - vk::DescriptorSet vulkanHandle = VK_NULL_HANDLE; + vk::DescriptorSet vulkanHandle = nullptr; vk::DescriptorSetAllocateInfo allocInfo(m_Pools.back(), 1, &setLayout.vulkanHandle); auto result = m_Device.allocateDescriptorSets(&allocInfo, &vulkanHandle); if(result != vk::Result::eSuccess) -- GitLab