From 9ee9283965d8e8d6969b952412d688e8afac2106 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 11 May 2016 15:18:00 +1200 Subject: layers: Fix get_descriptor_binding Not sure where the `return` went... this worked by accidents of calling conventions in debug, but was rightfully eaten by the optimizer in release. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 3385d91c..493698bf 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -1940,7 +1940,7 @@ static VkDescriptorSetLayoutBinding const * get_descriptor_binding(PIPELINE_LAYO if (slot.first >= pipelineLayout->descriptorSetLayouts.size()) return nullptr; - pipelineLayout->setLayouts[slot.first]->GetDescriptorSetLayoutBindingPtrFromBinding(slot.second); + return pipelineLayout->setLayouts[slot.first]->GetDescriptorSetLayoutBindingPtrFromBinding(slot.second); } // Block of code at start here for managing/tracking Pipeline state that this layer cares about -- cgit v1.2.3