Re: crash on import on Mac OS X after xml-generation merge explained

rndblnch <[email protected]> Fri, 24 Jan 2014 21:14:46 +0000 (UTC)
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
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





------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net