From 9f97648121ac43b56b6f928ae952de2a1c4b53ff Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Thu, 13 Aug 2020 12:57:25 +0300 Subject: [PATCH] Try without if statement for right --- components/renderers/cpp/src/CUDARender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/renderers/cpp/src/CUDARender.cpp b/components/renderers/cpp/src/CUDARender.cpp index aabf9c06c..bf0edd27f 100644 --- a/components/renderers/cpp/src/CUDARender.cpp +++ b/components/renderers/cpp/src/CUDARender.cpp @@ -392,13 +392,13 @@ void CUDARender::_allocateChannels(ftl::rgbd::Frame &out, ftl::codecs::Channel c //} // Allocate right channel buffers and clear them } else { - if (!out.hasChannel(Channel::Depth2)) { + //if (!out.hasChannel(Channel::Depth2)) { out.create<VideoFrame>(Channel::Depth2).createGPU(Format<float>(camera.width, camera.height)); out.create<VideoFrame>(Channel::Colour2).createGPU(Format<uchar4>(camera.width, camera.height)); out.create<VideoFrame>(Channel::Normals2).createGPU(Format<half4>(camera.width, camera.height)); out.createTexture<uchar4>(Channel::Colour2, ftl::rgbd::Format<uchar4>(camera.width, camera.height), true); // Force interpolated colour out.set<GpuMat>(Channel::Depth2).setTo(cv::Scalar(1000.0f), cvstream); - } + //} } temp_.create<VideoFrame>(Channel::Depth).createGPU(Format<int>(camera.width, camera.height)); -- GitLab