[PyOpenCL] OpenGL interop on Mac OS X patch
Andreas Kloeckner
lists at informa.tiker.net
Thu Feb 24 16:26:17 PST 2011
On Thu, 24 Feb 2011 11:32:31 -0500, Ian Johnson <enjalot at gmail.com> wrote:
> Same,
>
> Traceback (most recent call last):
> File "examples/gl_interop_demo.py", line 73, in <module>
> initialize()
> File "examples/gl_interop_demo.py", line 30, in initialize
> devices=[])
> pyopencl.LogicError: Context failed: invalid value - invalid context
> property
>
> The problem is that on the mac this:
> #if defined(cl_khr_gl_sharing) && (cl_khr_gl_sharing >= 1)
> is never defined, so having the if defined(__APPLE__) inside means it never
> happens on mac
Ok, I didn't understand that bit. Turns out that cl_ext.h was never
included on Apple. I've made another attempt to fix this--can you please
try again?
> Also, on linux I would get an error sometimes because of trying to convert
> the gl context handle from a long integer to a regular int and it being too
> big. I forgot where that code is though
Thanks!
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/20110224/59b1e56a/attachment.pgp>
More information about the PyOpenCL
mailing list