[ pyopengl-Bugs-1892167 ] Shader related error reporting is broken
"SourceForge.net" <[email protected]> Sun, 19 Jul 2009 02:36:15 +0000
| 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: 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
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net