[PyOpenGL-Devel] [ pyopengl-Bugs-1892167 ] Shader related error reporting is broken
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2009-07-19 02:36:17
|
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: Closed >Resolution: Fixed 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: 2009-07-18 22:36 Message: Shader info logs are working on shader capable machines. ---------------------------------------------------------------------- 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 |