Re: [PyOpenGL-Users] crash on import on Mac OS X after xml-generation merge explained
Brought to you by:
mcfletch
From: rndblnch <rnd...@gm...> - 2014-01-24 21:15:17
|
Mike C. Fletcher <mcfletch <at> vrplumber.com> writes: > Indeed it did. I tracked down the glGetString() calls, they happened > because the image-wrappers do a bool( function ) on various functions > which are GL_VERSION_1_2 *on import*, that is, they look at the > functions and say "do you exist" and then decide whether to wrap them > with convenience code. > > If you can test out bzr head on your machine it should confirm the fix. > I'll start running through the Linux and Windows testing in the meantime > to see if there's any regressions caused by it. it does not crash any more. however on my personal test suite (the same program converted step by step from using OpenGL 1. to modern OpenGL, see https://bitbucket.org/rndblnch/opengl-programmable/) it works until the introduction of vertex attributes (steps 01-direct.py to 06-perpixel.py work, but 07-attrib.py, 08-pbo.py, etc. give a black screen). i suspect that the pointer/offset parameter of the glXxxxPointer functions is not handled properly, i will look into it (i use ctypes arrays, no numpy). > Thanks, you are more than welcome, thank you for your work on PyOpenGL renaud > Mike |