Skip to content

Commit 63b5dee

Browse files
author
kallaballa
committed
fixed bug: variable shadowing
1 parent 8ba7389 commit 63b5dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/opengl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ Context& initializeContextFromGL()
16671667
if (status != CL_SUCCESS)
16681668
CV_Error_(cv::Error::OpenCLInitError, ("OpenCL: No devices available: %d", status));
16691669

1670-
cl_device_id* devices = new cl_device_id[devCnt];
1670+
devices = new cl_device_id[devCnt];
16711671

16721672
status = clGetDeviceIDs(platforms[i], CL_DEVICE_TYPE_GPU, devCnt, devices, NULL);
16731673
if (status != CL_SUCCESS)

0 commit comments

Comments
 (0)