Re: [PyOpenGL-Users] GLSL issue
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2007-05-20 17:13:54
|
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? Thanks, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |