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

Fix Apple share group query conditionals

parent df71095d
No related branches found
No related tags found
No related merge requests found
...@@ -143,10 +143,16 @@ cl_context_properties ...@@ -143,10 +143,16 @@ cl_context_properties
get_apple_cgl_share_group() get_apple_cgl_share_group()
{ {
#ifdef __APPLE__ #ifdef __APPLE__
CGLContextObj kCGLContext = CGLGetCurrentContext(); #ifdef HAVE_GL
CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext); CGLContextObj kCGLContext = CGLGetCurrentContext();
CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext);
return (cl_context_properties)kCGLShareGroup;
return (cl_context_properties)kCGLShareGroup;
#else
throw clerror("get_apple_cgl_share_group unavailable: "
"GL interop not compiled",
CL_INVALID_VALUE);
#endif
#else #else
throw clerror("get_apple_cgl_share_group unavailable: non-Apple platform", throw clerror("get_apple_cgl_share_group unavailable: non-Apple platform",
CL_INVALID_VALUE); CL_INVALID_VALUE);
......
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