diff options
| author | Józef Kucia <joseph.kucia@gmail.com> | 2017-09-21 17:07:37 +0200 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-09-21 11:10:10 -0600 |
| commit | 66f07ad7e15db7627a4b2232ab43ecb96752070f (patch) | |
| tree | c2da9d78c041e98ed3231411844870b7cb2d523f /layers/descriptor_sets.cpp | |
| parent | ee7156132bec485d3a487d03a96305857f6c6151 (diff) | |
| download | usermoji-66f07ad7e15db7627a4b2232ab43ecb96752070f.tar.xz | |
layers: Correctly check if descriptor was updated
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index c6f057df..6577fbb5 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -702,7 +702,7 @@ bool cvdescriptorset::DescriptorSet::ValidateCopyUpdate(const debug_report_data } // First make sure source descriptors are updated for (uint32_t i = 0; i < update->descriptorCount; ++i) { - if (!src_set->descriptors_[src_start_idx + i]) { + if (!src_set->descriptors_[src_start_idx + i]->updated) { std::stringstream error_str; error_str << "Attempting copy update from descriptorSet " << src_set << " binding #" << update->srcBinding << " but descriptor at array offset " << update->srcArrayElement + i << " has not been updated"; |
