diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-05-11 15:18:00 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-05-11 15:50:34 +1200 |
| commit | 9ee9283965d8e8d6969b952412d688e8afac2106 (patch) | |
| tree | bcb62a98503d801f16d812c760e37e3c184d57bc /layers/core_validation.cpp | |
| parent | eeb6e392e827880ce71ff7e82980550cfad99bf9 (diff) | |
| download | usermoji-9ee9283965d8e8d6969b952412d688e8afac2106.tar.xz | |
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 <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
