Skip to content
Snippets Groups Projects
Commit 06b43718 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'cffi' of tuck.d:src/pyopencl into cffi

parents 6c40d66c f522e884
No related branches found
No related tags found
No related merge requests found
......@@ -139,13 +139,16 @@ have_gl()
#endif
}
#ifdef __APPLE__
cl_context_properties
get_apple_cgl_share_group()
{
#ifdef __APPLE__
CGLContextObj kCGLContext = CGLGetCurrentContext();
CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext);
return (cl_context_properties)kCGLShareGroup;
}
#else
throw clerror("get_apple_cgl_share_group unavailable: non-Apple platform",
CL_INVALID_VALUE);
#endif /* __APPLE__ */
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment