Skip to content

Commit 1f6daf1

Browse files
author
devsh
committed
Fix #798
1 parent 4b34124 commit 1f6daf1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples_tests

src/nbl/video/utilities/CAssetConverter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,13 +1703,14 @@ class GetDependantVisit<ICPUDescriptorSet> : public GetDependantVisitBase<ICPUDe
17031703
outInfo.info.buffer.size = std::get<0>(argTuple).size;
17041704
}
17051705
}
1706-
if constexpr (std::is_same_v<DepType,ICPUImage>)
1706+
if constexpr (std::is_same_v<DepType,ICPUImageView>)
17071707
{
17081708
outInfo.info.image.imageLayout = std::get<0>(argTuple);
17091709
if (type==IDescriptor::E_TYPE::ET_COMBINED_IMAGE_SAMPLER)
17101710
{
17111711
assert(lastCombinedSampler);
1712-
outInfo.info.combinedImageSampler = std::get<1>(argTuple);
1712+
outInfo.info.combinedImageSampler.sampler = smart_refctd_ptr<IGPUSampler>(lastCombinedSampler);
1713+
lastCombinedSampler = nullptr; // for debuggability
17131714
}
17141715
}
17151716
return true;

0 commit comments

Comments
 (0)