From 63b5dee27484fdae081869d87de1661c97d3b849 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Thu, 10 Oct 2024 06:35:42 +0200 Subject: [PATCH] fixed bug: variable shadowing --- modules/core/src/opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/opengl.cpp b/modules/core/src/opengl.cpp index c249ce715b..f471a861cd 100644 --- a/modules/core/src/opengl.cpp +++ b/modules/core/src/opengl.cpp @@ -1667,7 +1667,7 @@ Context& initializeContextFromGL() if (status != CL_SUCCESS) CV_Error_(cv::Error::OpenCLInitError, ("OpenCL: No devices available: %d", status)); - cl_device_id* devices = new cl_device_id[devCnt]; + devices = new cl_device_id[devCnt]; status = clGetDeviceIDs(platforms[i], CL_DEVICE_TYPE_GPU, devCnt, devices, NULL); if (status != CL_SUCCESS)