From 0629add3f74e81fd8ae90f3c87d6b0057ec8bbfe Mon Sep 17 00:00:00 2001 From: Philippe FOUBERT Date: Sat, 22 Aug 2015 13:16:59 +0200 Subject: [PATCH] Fix issue #5234 (UMat::convertTo when noScale) --- modules/core/src/umatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/umatrix.cpp b/modules/core/src/umatrix.cpp index 742e3a2eb..2b77ddfd9 100644 --- a/modules/core/src/umatrix.cpp +++ b/modules/core/src/umatrix.cpp @@ -744,7 +744,7 @@ void UMat::convertTo(OutputArray _dst, int _type, double alpha, double beta) con char cvt[2][40]; ocl::Kernel k("convertTo", ocl::core::convert_oclsrc, - format("-D srcT=%s -D WT=%s -D dstT=%s -D convertToWT=%s -D convertToDT=%s%s", + format("-D srcT=%s -D WT=%s -D dstT=%s -D convertToWT=%s -D convertToDT=%s%s%s", ocl::typeToStr(sdepth), ocl::typeToStr(wdepth), ocl::typeToStr(ddepth), ocl::convertTypeStr(sdepth, wdepth, 1, cvt[0]), ocl::convertTypeStr(wdepth, ddepth, 1, cvt[1]),