Menu

#239 glProgramParameteri is undefined

open
GL (74)
5
2013-10-18
2011-09-04
Anonymous
No

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

Discussion

  • Mike C. Fletcher

    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.

     
  • Jorge H

    Jorge H - 2013-10-18

    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!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.