[PyOpenGL-Users] Checking Shader Errors
Brought to you by:
mcfletch
|
From: Ian M. <geo...@gm...> - 2009-04-19 00:44:24
|
Hi,
I've got a great shader library, and it's nearly done. Unfortunately,
certain custom functions have problems on ATI cards. I'm trying to add
error reporting to get useful errors about it. Unfortunately,
glGetShaderInfoLog() seems to fail. It works for me, with NVidia.
This function:
def CompileShader(source,shaderType):
shader = glCreateShaderObjectARB(shaderType)
glShaderSourceARB(shader,[source])
glCompileShaderARB(shader)
return shader
provides the "shader" that is passed as the argument to glGetShaderInfoLog().
I have no idea what's wrong, and I really need to have error reporting to
debug this.
Curiously, glGetInfoLogARB() seems to work fine, but it does not give useful
errors (fragment shader failed to compile successfully before linking or
some such). I tried using ctypes in ways like
here<http://www.pygame.org/wiki/GLSLExample?parent=CookBook>or
here <http://www.pygame.org/wiki/GLSL_ARB_Example?parent=CookBook>, but they
don't work for either of us.
I need errors. Help.
Thanks,
Ian
|