Code doesn't run on amd/ati hardware

Marcel Pfeiffer <[email protected]> Mon, 14 Jan 2013 20:51:26 +0100
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net