Skip to content

Commit 51e3f40

Browse files
fix some debug mode asserts, add a TODO
1 parent 8065bb2 commit 51e3f40

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/nbl/video/COpenGLDescriptorSet.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,13 @@ class COpenGLDescriptorSet : public IGPUDescriptorSet, protected asset::impl::IE
224224
#ifdef _NBL_DEBUG
225225
auto foundIn = getBindingInfo(input-srcGLSet->m_descriptors->begin());
226226
auto foundOut = getBindingInfo(output-m_descriptors->begin());
227-
assert(foundOut->descriptorType==foundOut->descriptorType);
227+
assert(foundIn->descriptorType==foundOut->descriptorType);
228228

229-
auto inLayoutBinding = getLayoutBinding(foundIn-srcGLSet->m_bindingInfo->begin());
230-
auto outLayoutBinding = getLayoutBinding(foundOut-m_bindingInfo->begin());
231-
assert(outLayoutBinding->stageFlags==inLayoutBinding->stageFlags);
232-
assert((!outLayoutBinding->samplers)==(!inLayoutBinding->samplers));
229+
// TODO: fix this debug code
230+
//auto inLayoutBinding = getLayoutBinding(foundIn-srcGLSet->m_bindingInfo->begin());
231+
//auto outLayoutBinding = getLayoutBinding(foundOut-m_bindingInfo->begin());
232+
//assert(outLayoutBinding->stageFlags==inLayoutBinding->stageFlags);
233+
//assert((!outLayoutBinding->samplers)==(!inLayoutBinding->samplers));
233234
#endif
234235
output->assign(*input, type);
235236
uint32_t localIx = _copy.dstArrayElement+i;

0 commit comments

Comments
 (0)