Skip to content

Commit

Permalink
core: fix autobuffer usage in opengl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
berak committed Jul 8, 2018
1 parent 0bb2c11 commit 4567781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1624,12 +1624,12 @@ Context& initializeContextFromGL()
if (status == CL_SUCCESS)
{
extensionStr.allocate(extensionSize+1);
status = clGetPlatformInfo(platforms[i], CL_PLATFORM_EXTENSIONS, extensionSize, (char*)extensionStr, NULL);
status = clGetPlatformInfo(platforms[i], CL_PLATFORM_EXTENSIONS, extensionSize, (char*)extensionStr.data(), NULL);
}
if (status != CL_SUCCESS)
CV_Error(cv::Error::OpenCLInitError, "OpenCL: Can't get platform extension string");

if (!strstr((const char*)extensionStr, "cl_khr_gl_sharing"))
if (!strstr((const char*)extensionStr.data(), "cl_khr_gl_sharing"))
continue;
}

Expand Down

0 comments on commit 4567781

Please sign in to comment.