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
Branches
Tags
No related merge requests found
Pipeline #19781 failed
...@@ -45,6 +45,8 @@ CullDiscontinuity::~CullDiscontinuity() { ...@@ -45,6 +45,8 @@ CullDiscontinuity::~CullDiscontinuity() {
} }
bool CullDiscontinuity::apply(ftl::rgbd::Frame &in, ftl::rgbd::Frame &out, cudaStream_t stream) { 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 out.clearPackets(Channel::Depth); // Force reset
ftl::cuda::cull_discontinuity( ftl::cuda::cull_discontinuity(
in.createTexture<int>(Channel::Mask), in.createTexture<int>(Channel::Mask),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment