glProgramParameteri is undefined. This makes usage of geometry shaders impossible.
The error happens here:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/OpenGL/platform/baseplatform.py", line 344, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glProgramParameteri, check for bool(glProgramParameteri) before calling
A workaround for the windows platform can be found here:
https://sites.google.com/site/dlampetest/python/geometry-shaders-from-python
and here:
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=277436
Unfortunately I couldn't find a workaround for the mac or linux.
If you have questions or a tip for a workaround, please write me: pyopengl [at] pdietrich.net
Cheers!
Patrick
It's definitely there in bzr head, also included is an alias in OpenGL.GL.shaders that uses either core or the ARB.geometry_shader4 version. That doesn't, however, currently use the EXT.geometry_shader4 or ARB.get_program_binary version. IIRC the get_program_binary version, if available, changes the definition of the entry point (ick!), but I'm guessing there shouldn't be much hardware that provides the EXT version but *not* the ARB version of geometry_shader4.
Hi there, I just run into this issue trying to learn geometry shaders. I see there's a work around for windows, but I'm working on OS X. Is there a known way to get the glProgramParameteri() call to work on OS X? I'd appreciate any help you can give me.
Btw, thanks for pyopengl. It is just great!