Skip to content
Snippets Groups Projects
Commit 95eaf583 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix exception in remove discon

parent 8dbef3b5
No related branches found
No related tags found
No related merge requests found
Pipeline #19781 failed
......@@ -45,6 +45,8 @@ CullDiscontinuity::~CullDiscontinuity() {
}
bool CullDiscontinuity::apply(ftl::rgbd::Frame &in, ftl::rgbd::Frame &out, cudaStream_t stream) {
if (!in.hasChannel(Channel::Depth) || !in.hasChannel(Channel::Mask)) return false;
out.clearPackets(Channel::Depth); // Force reset
ftl::cuda::cull_discontinuity(
in.createTexture<int>(Channel::Mask),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment