From 69fc5de918232d31481628666b488fb73e9ca389 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Fri, 25 Feb 2011 01:33:03 -0500
Subject: [PATCH] Fix CL GL sharing on Apple yet another time.

---
 src/wrapper/wrap_cl.hpp        | 2 +-
 src/wrapper/wrap_cl_part_2.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wrapper/wrap_cl.hpp b/src/wrapper/wrap_cl.hpp
index 90405610..276dbd8b 100644
--- a/src/wrapper/wrap_cl.hpp
+++ b/src/wrapper/wrap_cl.hpp
@@ -2972,7 +2972,7 @@ namespace pyopencl
 
 
 
-#if defined(PYOPENCL_GL_SHARING_VERSION) && (PYOPENCL_GL_SHARING_VERSION >= 1)
+#if defined(cl_khr_gl_sharing) && (cl_khr_gl_sharing >= 1)
   inline
   py::object get_gl_context_info_khr(
       py::object py_properties,
diff --git a/src/wrapper/wrap_cl_part_2.cpp b/src/wrapper/wrap_cl_part_2.cpp
index e8457f37..899db5b8 100644
--- a/src/wrapper/wrap_cl_part_2.cpp
+++ b/src/wrapper/wrap_cl_part_2.cpp
@@ -234,7 +234,7 @@ void pyopencl_expose_part_2()
       ),
       py::return_value_policy<py::manage_new_object>());
 
-#if defined(PYOPENCL_GL_SHARING_VERSION) && (PYOPENCL_GL_SHARING_VERSION >= 1)
+#if defined(cl_khr_gl_sharing) && (cl_khr_gl_sharing >= 1)
   py::def("get_gl_context_info_khr", get_gl_context_info_khr,
       py::args("properties", "param_name"));
 #endif
-- 
GitLab