mirror of
https://github.com/opencv/opencv.git
synced 2024-11-23 18:50:21 +08:00
fixed bug: variable shadowing
This commit is contained in:
parent
8ba7389b21
commit
63b5dee274
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user