[ pyopengl-Bugs-2935298 ] glShaderSource wrapper fail on ATI card ?
"SourceForge.net" <[email protected]> Tue, 19 Jan 2010 23:04:53 +0000
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2935298, was opened at 2010-01-19 23:04
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2935298&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: GL
Group: v2.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: glShaderSource wrapper fail on ATI card ?
Initial Comment:
Hi everyone,
I got a problem on my framework with Shader + ATI card. By switching from pyglet to pyopengl, shader just not working anymore. After investigation, it seem that the wrapper on glShaderSource is not working properly.
If i use the pyopengl wrapper (glShaderSource(shader, source)), i got an error at glLinkProgram() :
Fragment shader was successfully compiled to run on hardware.
Fragment shader(s) failed to link, vertex shader(s) failed to link.
ERROR: 1:1: error(#132) Syntax error: 'v' parse error
ERROR: error(#273) 1 compilation errors. No code generated
ERROR: 1:1: error(#132) Syntax error: 'v' parse error
ERROR: error(#273) 1 compilation errors. No code generated
If i'm doing ctype myself like:
glShaderSource = platform.createBaseFunction(
'glShaderSource', dll=platform.GL,
resultType=None,
argTypes=(constants.GLhandle, constants.GLsizei, ctypes.POINTER(ctypes.c_char_p), arrays.GLintArray,),
doc = 'glShaderSource( GLhandle(shaderObj), str( string) ) -> None',
argNames = ('shaderObj', 'count', 'string', 'length',),
)
from ctypes import *
source = c_char_p(source)
length = c_int(-1)
glShaderSource(shader, 1, byref(source), byref(length))
-> no more error message at glLinkProgram.
Where i can debug more the wrapper function ? Is it a converter problem ?
Thanks,
Mathieu
Note: i'm running the 3.0.0-0ubuntu1 from Ubuntu Karmic.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2935298&group_id=5988
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net