Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 25 by
brettgra...@gmail.com: glsl shader linking fails on ati card
http://code.google.com/p/glumpy/issues/detail?id=25
What steps will reproduce the problem?
1. Use an ati card
2. this was tested on ubuntu 12.04
3.
What is the expected output? What do you see instead?
All shader compilations fail with:
"""
glumpy.graphics.shader.ShaderException: Linking: Vertex shader(s) failed to
link, fragment shader(s) failed to link.
ERROR: 9:1: error(#132) Syntax error: 'v' parse error
ERROR: error(#273) 1 compilation errors. No code generated
ERROR: 9:1: error(#132) Syntax error: 'v' parse error
ERROR: error(#273) 1 compilation errors. No code generated
"""
What version of the product are you using? On what operating system?
git checkout of glumpy (commit: fb8dd9e39d0e74e9c1b5d02ef4f0207bada605c0)
Ubuntu 12.04LTS
OpenGL.version.__version__ == 3.0.1b2
Please provide any additional information below.
I found the fix here:
http://www.gamedev.net/topic/562542-glsl-linking-error-for-simple-shaders/
in brief, change line 107 in glumpy/graphics/shader.py to:
gl.glShaderSource(shader, [strings, ])
instead of:
gl.glShaderSource(shader, strings)