From: Alexander Smorkalov Date: Mon, 28 Nov 2022 06:47:51 +0000 (+0300) Subject: More fixes for OpenCL error reporting. X-Git-Tag: accepted/tizen/unified/20230127.161057~1^2~72^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c3e287d32749ae4d536694d0f4c6a4dcf0af098;p=platform%2Fupstream%2Fopencv.git More fixes for OpenCL error reporting. --- diff --git a/modules/core/src/opengl.cpp b/modules/core/src/opengl.cpp index 6bc11f9..45aa121 100644 --- a/modules/core/src/opengl.cpp +++ b/modules/core/src/opengl.cpp @@ -1883,13 +1883,13 @@ UMat mapGLBuffer(const Buffer& buffer, AccessFlag accessFlags) cl_int status = 0; cl_mem clBuffer = clCreateFromGLBuffer(context, clAccessFlags, buffer.bufId(), &status); if (status != CL_SUCCESS) - CV_Error(cv::Error::OpenCLApiCallError, ("OpenCL: clCreateFromGLBuffer failed: %d", status)); + CV_Error_(cv::Error::OpenCLApiCallError, ("OpenCL: clCreateFromGLBuffer failed: %d", status)); gl::Finish(); status = clEnqueueAcquireGLObjects(clQueue, 1, &clBuffer, 0, NULL, NULL); if (status != CL_SUCCESS) - CV_Error(cv::Error::OpenCLApiCallError, ("OpenCL: clEnqueueAcquireGLObjects failed: %d", status)); + CV_Error_(cv::Error::OpenCLApiCallError, ("OpenCL: clEnqueueAcquireGLObjects failed: %d", status)); size_t step = buffer.cols() * buffer.elemSize(); int rows = buffer.rows();