From 735e1eece4cb9297d2cf82d34b617a0c7f7e921c Mon Sep 17 00:00:00 2001 From: Sergey Dorodnicov Date: Mon, 1 Apr 2019 04:44:42 -0700 Subject: [PATCH] Exit function after CUDA conversion Addressing #3623 --- src/image.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/image.cpp b/src/image.cpp index d88130c336..c74f89f81f 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -344,6 +344,7 @@ namespace librealsense assert(n % 16 == 0); // All currently supported color resolutions are multiples of 16 pixels. Could easily extend support to other resolutions by copying final n<16 pixels into a zero-padded buffer and recursively calling self for final iteration. #ifdef RS2_USE_CUDA rscuda::unpack_yuy2_cuda(d, s, n); + return; #endif #if defined __SSSE3__ && ! defined ANDROID static bool do_avx = has_avx();