diff --git a/components/operators/src/clipping.cpp b/components/operators/src/clipping.cpp index b3c5d9072ddc9864c31bc9ba7af3d7346beddd4b..17529bed26f7d541857628e4f5e7fa239a58cfa9 100644 --- a/components/operators/src/clipping.cpp +++ b/components/operators/src/clipping.cpp @@ -77,7 +77,8 @@ bool ClipScene::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cudaStr auto sclip = clip; sclip.origin = sclip.origin.getInverse() * pose; if (!no_clip) { - f.create<cv::cuda::GpuMat>(Channel::Depth); // Force reset. + //f.create<cv::cuda::GpuMat>(Channel::Depth); // Force reset. + f.clearPackets(Channel::Depth); ftl::cuda::clipping(f.createTexture<float>(Channel::Depth), f.getLeftCamera(), sclip, stream); } }