From f0a8ae72daec460cc087e824e952f43c3e89dabc Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 30 Oct 2019 09:59:24 +0200 Subject: [PATCH] Fix old snapshot --- .../rgbd-sources/src/sources/snapshot/snapshot_source.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/rgbd-sources/src/sources/snapshot/snapshot_source.cpp b/components/rgbd-sources/src/sources/snapshot/snapshot_source.cpp index 73db6b86c..136a2e7df 100644 --- a/components/rgbd-sources/src/sources/snapshot/snapshot_source.cpp +++ b/components/rgbd-sources/src/sources/snapshot/snapshot_source.cpp @@ -59,8 +59,10 @@ bool SnapshotSource::compute(int n, int b) { snapshot_.getLeftRGB(camera_idx_, frame_idx_, snap_rgb_); snapshot_.getLeftDepth(camera_idx_, frame_idx_, snap_depth_); - snap_rgb_.copyTo(rgb_); - snap_depth_.copyTo(depth_); + //snap_rgb_.copyTo(rgb_); + //snap_depth_.copyTo(depth_); + rgb_.upload(snap_rgb_); + depth_.upload(snap_depth_); auto cb = host_->callback(); if (cb) cb(timestamp_, rgb_, depth_); -- GitLab