layers: Fix get_descriptor_binding
authorChris Forbes <chrisforbes@google.com>
Wed, 11 May 2016 03:18:00 +0000 (15:18 +1200)
committerChris Forbes <chrisforbes@google.com>
Wed, 11 May 2016 03:50:34 +0000 (15:50 +1200)
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 <chrisforbes@google.com>
layers/core_validation.cpp

index 3385d91..493698b 100644 (file)
@@ -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