Re: [PyOpenGL-Users] GLSL issue
Brought to you by:
mcfletch
From: Crni G. <cg...@gm...> - 2007-05-21 09:55:10
|
On 5/20/07, Mike C. Fletcher <mcf...@vr...> wrote: > Crni Gorac wrote: > > Am trying PyOpenGL on Linux together with recently announced Mesa > > 6.5.3, that has full support for OpenGL shading language. PyOpenGL > > seems to be working fine, I was able to compile and use my shaders. > > There was a PyOpenGL fix needed, however: glGetObjectParameter() calls > > from OpenGL/GL/VERSION/GL_2_0.py should be replaced with > > glGetShaderiv()/glGetProgramiv(). I was able to run my program by > > simply deleting _afterCheck() error checking function registration > > from above file, and then re-compiling and re-installing PyOpenGL, but > > this issue should be probably properly fixed... > > > Hmm, I'm running Mesa 6.5.2 on my Gentoo machine (with the nvidia > driver) and am not seeing errors with the original code. I've replaced > the calls in _afterCheck with the glGetShaderiv and glGetProgramiv > calls. Is there a reference somewhere that describes why the > glGetObjectParameter calls are wrong, and in which cases they should be > used? Please find attached my test program. I guess I can only point that above call is not mentioned in OpenGL 2.0 specification: http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf... There is really great deal of confusion regarding what actually constitutes OpenGL 2.0, hopefully upcoming Mesa 7.0 release (that will advertise OpenGL 2.1 support) will stabilize these things... Anyway, kudos for your great work on PyOpenGL! Best, Crni |