[ pyopengl-Bugs-1892167 ] Shader related error reporting is broken

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #1892167, was opened at 2008-02-12 14:36
Message generated for change (Comment added) made by mcfletch
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1892167&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Shader related error reporting is broken

Initial Comment:
In pyopengl-ctypes CVS:
When trying to compile an erroneous shader pyopengl returns the following error:

  File "/usr/lib/python2.5/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 85, in GLSLCheckError
    description= glGetInfoLog( cArguments[0] )
NameError: global name 'glGetInfoLog' is not defined

After adding "from OpenGL.GL.ARB.shader_objects import glGetInfoLogARB as glGetInfoLog" to GL_2.0.py the following error appears:

  File "/usr/lib/python2.5/site-packages/OpenGL/GL/ARB/shader_objects.py", line 120, in glGetInfoLogARB
    log = ctypes.create_string_buffer(length)
  File "/usr/lib/python2.5/ctypes/__init__.py", line 73, in create_string_buffer
    raise TypeError, init
TypeError: 220

The preceding call to glGetObjectParameterivARB returns a "length" that is of type numpy.int32 while ctypes expects long or int.
After casting "length" to int, the program now throws the proper GLError.

----------------------------------------------------------------------

>Comment By: Mike C. Fletcher (mcfletch)
Date: 2008-04-18 16:49

Message:
Logged In: YES 
user_id=34901
Originator: NO

Don't have a shader-capable system at the moment, I've integrated the
changes into CVS, guess we'll see whether they work when I get to a
shader-capable machine.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1892167&group_id=5988

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.