1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

ocl: fix PlatformInfo usage

This commit is contained in:
Alexander Alekhin
2020-09-25 19:22:12 +00:00
parent c32e349332
commit c945ea125a
4 changed files with 7 additions and 13 deletions
+1 -1
View File
@@ -1690,7 +1690,7 @@ Context& initializeContextFromGL()
CV_Error(cv::Error::OpenCLInitError, "OpenCL: Can't create context for OpenGL interop");
cl_platform_id platform = platforms[found];
std::string platformName = PlatformInfo(platform).name();
std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx = OpenCLExecutionContext::create(platformName, platform, context, device);
clReleaseDevice(device);