Skip to content

Commit 9a68602

Browse files
fix inaccurate asserts
1 parent 3f44c12 commit 9a68602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nbl/video/COpenGLDescriptorSet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ class COpenGLDescriptorSet : public IGPUDescriptorSet, protected asset::impl::IE
208208

209209
assert(_copy.srcBinding<srcGLSet->m_bindingInfo->size());
210210
assert(_copy.dstBinding<m_bindingInfo->size());
211-
assert(_copy.srcArrayElement+_copy.count<srcGLSet->m_descriptors->size());
212-
assert(_copy.dstArrayElement+_copy.count<m_descriptors->size());
211+
assert(_copy.srcArrayElement+_copy.count<=srcGLSet->m_descriptors->size());
212+
assert(_copy.dstArrayElement+_copy.count<=m_descriptors->size());
213213
// The type of dstBinding within dstSet must be equal to the type of srcBinding within srcSet
214214
const auto type = srcGLSet->m_bindingInfo->operator[](_copy.srcBinding).descriptorType;
215215
assert(type==m_bindingInfo->operator[](_copy.dstBinding).descriptorType);

0 commit comments

Comments
 (0)