[PyOpenCL] OpenGL interop on Mac OS X patch

Andreas Kloeckner lists at informa.tiker.net
Thu Feb 24 22:12:36 PST 2011


On Thu, 24 Feb 2011 23:17:38 -0500, Ian Johnson <enjalot at gmail.com> wrote:
> Thank you for your hardwork!
> So we are close, but just barely off, now it wont compile because Apple
> doesn't define these:
> 
> 735        else if (prop == CL_GL_CONTEXT_KHR
>  736             || prop == CL_EGL_DISPLAY_KHR
>  737             || prop == CL_GLX_DISPLAY_KHR
>  738             || prop == CL_CGL_SHAREGROUP_KHR
> or these
> 3003       case CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR:
> 3012       case CL_DEVICES_FOR_GL_CONTEXT_KHR:
> 
> so probably need to make the __APPLE__ an elseif defined...

Ok, how about now?

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20110225/06da6b45/attachment.pgp>


More information about the PyOpenCL mailing list