Re: [PyOpenGL-Users] glVertexAttribPointer(); loading platform-specific functions
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-08-13 21:43:12
|
Joshua Davis wrote: > On 2009 Aug 13 , at 11:10 AM, Mike C. Fletcher wrote: > ... > Thanks. I've had some trouble updating PyOpenGL -- probably my > incompetence -- but now I'm up to 3.0.1a2 and using the > OpenGL.GL.shaders convenience functions. When I try to construct a > simple shader program... > ... > OpenGL.error.GLError: GLError( > err = 1280, > description = 'invalid enumerant', > baseOperation = glGetProgramivARB, > pyArgs = (3L, GL_VALIDATE_STATUS), > cArgs = (3L, GL_VALIDATE_STATUS, array([0])), > cArguments = (3L, GL_VALIDATE_STATUS, array([0])) > ) > > This never happened with my home-spun shader-building functions. Your > continuing help is appreciated. > This is a bug in the shaders module. Turns out that glGetProgramivARB and glGetProgramiv have different roles?! Basically it looks like it's glGetObjectParameteriv that's supposed to be used for the glGetProgramiv validity check call (at least, if I use that and disable core GL I get the correct operation). Going to have to look into the function definitions more to be sure that the alternate declaration works. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |