From: Chris Forbes Date: Wed, 11 May 2016 03:18:00 +0000 (+1200) Subject: layers: Fix get_descriptor_binding X-Git-Tag: upstream/1.1.92~3104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ee9283965d8e8d6969b952412d688e8afac2106;p=platform%2Fupstream%2FVulkan-Tools.git 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 --- diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 3385d91..493698b 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