[PyOpenGL-Users] Code doesn't run on amd/ati hardware
Brought to you by:
mcfletch
From: Marcel P. <pfe...@fr...> - 2013-01-14 19:54:56
|
Hi, I've got a piece of code that runs flawlessly on Linux and Intel GMA HD graphics: http://pastebin.com/GcxAXBk7 Unfortunately with nearly the same software configuration and an ATI Radeon 5770 using fglrx driver it refuses to run: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "misc/shadertest120_triangle.py", line 217, in <module> t.run() File "misc/shadertest120_triangle.py", line 203, in run self.init() File "misc/shadertest120_triangle.py", line 49, in init self.createShaders() File "misc/shadertest120_triangle.py", line 146, in createShaders glUseProgram(self.programId) File "/usr/lib/python3.3/site-packages/OpenGL/platform/baseplatform.py", line 379, in __call__ return self( *args, **named ) File "/usr/lib/python3.3/site-packages/OpenGL/error.py", line 208, in glCheckError baseOperation = baseOperation, OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glUseProgram, cArguments = (3,) ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ glGetProgramInfoLog yields after linking: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vertex shader(s) failed to link, fragment shader(s) failed to link. Vertex link error: INVALID_OPERATION. ERROR: 1:1: error(#132) Syntax error: "v" parse error ERROR: error(#273) 1 compilation errors. No code generated fragment link error: INVALID_OPERATION. ERROR: 1:1: error(#132) Syntax error: "v" parse error ERROR: error(#273) 1 compilation errors. No code generated ~~~~~~~~~~~~~~~~~~~~~~~~~~~ First I'd like to know if I missed anything codewise and if it runs for anyone else. My configuration: * Archlinux 64bit * Python 3.3 * python3-opengl 3.0.2 * python-pygame-hg 3149-1 GL_SHADING_LANGUAGE_VERSION: '4.20' GL_VERSION: '4.2.11978 Compatibility Profile Context' Thanks if you have a look at it. Have a nice evening, Marcel |