glUniform4f generated error GL_INVALID_OPERATION

I’m currently trying to get The Chronicles of Riddick (GOG version) running on the steam deck.
Running Mesa driver 22.08 with the patch here:

the game boots but everything except videos and loading screens displays either a black/white image.

Using GLIntercept to try and debug the issue it gives the following error log:

GL Intercept Log. Version : 1.34    Compile Date: Jul 19 2023    Run on: Thu Jul 20 15:57:51 2023

===================================================
Function glGetError is being called before context creation
Call to glGetError made outside of context/init
Function wglSwapMultipleBuffers unable to be mapped
Shader Compiler: Other(High) 1: 0:466(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 2: 0:466(49): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 3: 0:466(76): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 4: 0:471(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 5: 0:471(45): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 6: 0:471(68): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 7: 0:469(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 8: 0:469(49): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 9: 0:469(76): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 10: 0:474(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 11: 0:474(45): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 12: 0:474(68): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 13: 0:471(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 14: 0:471(49): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 15: 0:471(76): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 16: 0:476(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 17: 0:476(45): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 18: 0:476(68): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 19: 0:475(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 20: 0:475(49): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 21: 0:475(76): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Other(High) 22: 0:480(22): warning: `a_TS2W_Mat_0' used uninitialized
Shader Compiler: Other(High) 23: 0:480(45): warning: `a_TS2W_Mat_1' used uninitialized
Shader Compiler: Other(High) 24: 0:480(68): warning: `a_TS2W_Mat_2' used uninitialized
Shader Compiler: Error(High) 25: 0:456(9): error: no function with name 'round'
Shader Compiler: Error(High) 26: 0:456(9): error: operands to arithmetic operators must be numeric
Shader Compiler: Error(High) 27: 0:456(2): error: `return' with wrong type error, in function `SnapdUV' returning vec2
Shader Compiler: Other(High) 28: 0:497(11): warning: `g_maxr2' used uninitialized
Shader Compiler: Other(High) 29: 0:503(27): warning: `g_maxrrcp' used uninitialized
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
OpenGL: Error(High) 30: GL_INVALID_OPERATION in glUniform(location=10)
GL ERROR - Function glUniform4f generated error GL_INVALID_OPERATION
===================================================
Log End.

The shaders are stored under the game file and can be edited but I haven’t been able to work out what’s causing these errors. Debugging directly under Wine in Arch linux is somewhat difficult.

Reports indicate the game runs fine under Nvidia and AMDGPU PRO drivers, it’s just MESA that doesn’t seem to work.

Any help would be appreciated.

OpenGL errors shouldn’t be platform-specific. They represent something that the program did wrong, and “wrong” is defined by the specification.

So either the program is doing conditional logic based on the drivers it detects or MESA has a bug in it that’s delivering spurious errors. Or somehow both NVIDIA and AMD are not giving those errors when they should. Have you checked to see if those errors are also being given under NVIDIA and AMD drivers? If so, then the error is probably not the problem.

From the information I’ve gathered the Nvidia drivers are much more forgiving in incorrect OpenGL usage and are correcting the calls internally.

Log from a Nvidia driver:

GL Intercept Log. Version : 1.34    Compile Date: Jul 19 2023    Run on: Thu Jul 20 16:42:12 2023

===================================================
Function glGetError is being called before context creation
Call to glGetError made outside of context/init
OpenGL: Other(Low) 131169: Framebuffer detailed info: The driver allocated storage for renderbuffer 1.
OpenGL: Other(Low) 131169: Framebuffer detailed info: The driver allocated storage for renderbuffer 2.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 3 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 4 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 4 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 5 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 6 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 6 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 7 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 8 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 8 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 9 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 10 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 10 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 11 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 12 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 12 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 13 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 14 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 14 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 15 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 16 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 16 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) has been mapped in HOST memory.
OpenGL: Other(Notification) 131185: Buffer detailed info: Buffer object 17 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 951 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 951 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 952 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 953 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 953 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Other(Low) 131169: Framebuffer detailed info: The driver allocated storage for renderbuffer 3.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 965 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 965 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 958 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 966 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 966 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 968 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 968 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 969 is being recompiled based on GL state.
OpenGL: Other(Low) 131169: Framebuffer detailed info: The driver allocated storage for renderbuffer 4.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state.
OpenGL: Performance(Medium) 131218: Program/shader state performance warning: Vertex shader in program 950 is being recompiled based on GL state, and was not found in the disk cache
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.
OpenGL: Other(Low) 131217: Program/shader state detailed info: A uniform array load for the active GLSL program at location 242 ignored 3 elements, because <count> exceeds the number of active array elements.

===================================================
Log End.

I’ve managed to isolate the problematic shader.

Render Log Comparison Broken Mesa vs Working Nvidia:

The shader:


//== PROGRAM LINK STATUS = TRUE
//== PROGRAM VALIDATE STATUS = FALSE

//======================================================
//   Vertex Shader 43 
//======================================================

//== SHADER COMPILE STATUS = TRUE
#version 120

//Might need to fix this in case pxlfmt says it's unsupported
#extension GL_ARB_draw_buffers : enable
#extension GL_ATI_shader_texture_lod : enable

#define target_glsl
#define _CLIPVERTEX_

#define CONST_ARRAY_START(_Type,_Name,_Len)     _Type _Name[_Len] = _Type[_Len] (
#define CONST_ARRAY_END             )

#define IsFrontFacing  gl_FrontFacing

#define MACRO_IsolateCode(_x)        { _x }

#define M_PI 3.141592653589
#define M_2PI 6.28318530717
#define M_PI_RCP 0.318309886183
#define M_2PI_RCP 0.159154943091

#define float4       vec4
#define float3       vec3
#define float2       vec2
#define half         float
#define half2        vec2
#define half3        vec3
#define half4        vec4
#define samplerCUBE  samplerCube

#define tex1D        texture1D
#define tex2D        texture2D
#define tex2Dproj    texture2DProj
#define tex3D        texture3D
#define texCUBE      textureCube

#define texDyn2D         texture2D
#define texDynCUBE       textureCube
#define textureDyn2D     texture2D
#define textureDynCube   textureCube

float4 tex2DBias(sampler2D _tex, float2 _st, float _bias) { return texture2D(_tex, _st, _bias); }
float4 texCubeBias(samplerCube _tex, float3 _str, float _bias) { return textureCube(_tex, _str, _bias); }

float4 tex2Dlod(sampler2D _tex, vec4 _Coord) { return texture2DLod(_tex,_Coord.xy,_Coord.w); }
float4 texCUBElod(samplerCube _tex, vec4 _Coord) { return textureCubeLod(_tex,_Coord.xyz,_Coord.w); }

#define splat4       vec4
#define splat3       vec3
#define splat2       vec2

#define clip(_x)   { if ((_x) < 0.0) discard; }

#define atan2        atan
#define isnan(_Val)  (!(_Val == _Val))
#define fmod         mod
float rsqrt(float _Value) { return inversesqrt(_Value); }
float frac(float _Value) { return fract(_Value); }
float2 frac(float2 _Value) { return fract(_Value); }
float3 frac(float3 _Value) { return fract(_Value); }
float4 frac(float4 _Value) { return fract(_Value); }

float lerp(float _a, float _b, float _t) { return _t * (_b - _a) + _a; }
float2 lerp(float2 _a, float2 _b, float2 _t) { return _t * (_b - _a) + _a; }
float2 lerp(float2 _a, float2 _b, float _t) { return _t * (_b - _a) + _a; }
float3 lerp(float3 _a, float3 _b, float3 _t) { return _t * (_b - _a) + _a; }
float3 lerp(float3 _a, float3 _b, float _t) { return _t * (_b - _a) + _a; }
float4 lerp(float4 _a, float4 _b, float4 _t) { return _t * (_b - _a) + _a; }
float4 lerp(float4 _a, float4 _b, float _t) { return _t * (_b - _a) + _a; }

float saturate(float _Value)
{
    return clamp(_Value,0.0,1.0);
}

vec2 saturate(vec2 _Value)
{
    return clamp(_Value,0.0,1.0);
}

vec3 saturate(vec3 _Value)
{
    return clamp(_Value,0.0,1.0);
}

vec4 saturate(vec4 _Value)
{
    return clamp(_Value,0.0,1.0);
}

void sincos(float _Angle,out float _Sn,out float _Cs)
{
    _Sn = sin(_Angle);
    _Cs = cos(_Angle);
}

float ldexp(float _Mul,float _Exp)
{
    return _Mul * pow(2.0,_Exp);
}

float log10(float _Val)
{
    return log(_Val) / log(10.0);
}

//Hyperbolic functions unverified!
float sinh(float _Angle)
{
    float Ret = exp(_Angle) - exp(-_Angle);
    return Ret / 2.0;
}

float cosh(float _Angle)
{
    float Ret = exp(_Angle) + exp(-_Angle);
    return Ret / 2.0;
}

float tanh(float _Angle)
{
    return (exp(2.0 * _Angle) - 1.0) / (exp(2.0 * _Angle) + 1.0);
}

int Index(float _iValue) { return int(_iValue); }
float ARL(float _Arg1) { return floor(_Arg1); }

vec4 tex2Dvtx(sampler2D _Sampler,vec4 _TC) { return texture2D(_Sampler,_TC.xy); }
vec4 texCUBEvtx(samplerCube _Sampler,vec4 _TC) { return textureCube(_Sampler,_TC.xyz); }
#define _InPos gl_Vertex
#define _InMW0 va_matrixweight0
attribute vec4 va_matrixweight0;
#define _InMW1 va_matrixweight1
attribute vec4 va_matrixweight1;
#define _InMI0 va_matrixindex0
attribute vec4 va_matrixindex0;
#define _InMI1 va_matrixindex1
attribute vec4 va_matrixindex1;
#define _InNormal gl_Normal
#define _InColor gl_Color
#define _InSecColor va_color1
attribute vec4 va_color1;
#define _InTexCoord0 va_texcoord0
attribute vec4 va_texcoord0;
#define _InTexCoord1 va_texcoord1
attribute vec4 va_texcoord1;
#define _InTexCoord2 va_texcoord2
attribute vec4 va_texcoord2;
#define _InTexCoord3 va_texcoord3
attribute vec4 va_texcoord3;
#define _InTexCoord4 va_texcoord4
attribute vec4 va_texcoord4;
#define _InTexCoord5 va_texcoord5
attribute vec4 va_texcoord5;
#define _InTexCoord6 va_texcoord6
attribute vec4 va_texcoord6;
#define _InTexCoord7 va_texcoord7
attribute vec4 va_texcoord7;
#define _OutPos gl_Position
#define _OutColor gl_FrontColor
#define _OutTexCoord0 gl_TexCoord[0]
#define _OutTexCoord1 gl_TexCoord[1]
#define _OutTexCoord2 gl_TexCoord[2]
#define _OutTexCoord3 gl_TexCoord[3]
#define _OutTexCoord4 gl_TexCoord[4]
#define _OutTexCoord5 gl_TexCoord[5]
#define _OutTexCoord6 gl_TexCoord[6]
#define _OutTexCoord7 gl_TexCoord[7]
// Flags: mwcomp0+coloroutput+colorvertex

uniform vec4 c[242];
void main()
{

        vec4 ObjPos;
        vec4 ObjNormal;

        vec4 Trans0;
        vec4 Trans1;
        vec4 Trans2;
#ifdef target_hlsl
        ObjNormal = Trans1 = Trans2 = Trans0 = splat4(0.0);
#endif

#define ModelTranslate    c[7]
#define ModelRotate0      c[4]
#define ModelRotate1      c[5]
#define ModelRotate2      c[6]
#define ModelProjection0  c[0]
#define ModelProjection1  c[1]
#define ModelProjection2  c[2]
#define ModelProjection3  c[3]
    
        ObjPos = _InPos;
    
            vec4 DiffuseColor = c[10];
        
        #ifdef target_cg
            DiffuseColor *= _InColor.yzwx;
        #else
            DiffuseColor *= _InColor;
        #endif
        
            _OutColor = DiffuseColor;
        
        vec4 WorldPos;
        MACRO_IsolateCode(
        WorldPos = ObjPos + ModelTranslate;
        _OutPos.x = dot(ModelProjection0,WorldPos);
        _OutPos.y = dot(ModelProjection1,WorldPos);
        _OutPos.z = dot(ModelProjection2,WorldPos);
        _OutPos.w = dot(ModelProjection3,WorldPos);
        );
    }

//======================================================
//   Fragment Shader 881 
//======================================================

//== SHADER COMPILE STATUS = TRUE
#version 120

//Might need to fix this in case pxlfmt says it's unsupported
#extension GL_ARB_draw_buffers : enable
#extension GL_ATI_shader_texture_lod : enable

#define target_glsl
#define _CLIPVERTEX_

#define CONST_ARRAY_START(_Type,_Name,_Len)     _Type _Name[_Len] = _Type[_Len] (
#define CONST_ARRAY_END             )

#define IsFrontFacing  gl_FrontFacing

#define MACRO_IsolateCode(_x)        { _x }

#define M_PI 3.141592653589
#define M_2PI 6.28318530717
#define M_PI_RCP 0.318309886183
#define M_2PI_RCP 0.159154943091

#define float4       vec4
#define float3       vec3
#define float2       vec2
#define half         float
#define half2        vec2
#define half3        vec3
#define half4        vec4
#define samplerCUBE  samplerCube

#define tex1D        texture1D
#define tex2D        texture2D
#define tex2Dproj    texture2DProj
#define tex3D        texture3D
#define texCUBE      textureCube

#define texDyn2D         texture2D
#define texDynCUBE       textureCube
#define textureDyn2D     texture2D
#define textureDynCube   textureCube

float4 tex2DBias(sampler2D _tex, float2 _st, float _bias) { return texture2D(_tex, _st, _bias); }
float4 texCubeBias(samplerCube _tex, float3 _str, float _bias) { return textureCube(_tex, _str, _bias); }

float4 tex2Dlod(sampler2D _tex, vec4 _Coord) { return texture2DLod(_tex,_Coord.xy,_Coord.w); }
float4 texCUBElod(samplerCube _tex, vec4 _Coord) { return textureCubeLod(_tex,_Coord.xyz,_Coord.w); }

#define splat4       vec4
#define splat3       vec3
#define splat2       vec2

#define clip(_x)   { if ((_x) < 0.0) discard; }

#define atan2        atan
#define isnan(_Val)  (!(_Val == _Val))
#define fmod         mod
float rsqrt(float _Value) { return inversesqrt(_Value); }
float frac(float _Value) { return fract(_Value); }
float2 frac(float2 _Value) { return fract(_Value); }
float3 frac(float3 _Value) { return fract(_Value); }
float4 frac(float4 _Value) { return fract(_Value); }

float lerp(float _a, float _b, float _t) { return _t * (_b - _a) + _a; }
float2 lerp(float2 _a, float2 _b, float2 _t) { return _t * (_b - _a) + _a; }
float2 lerp(float2 _a, float2 _b, float _t) { return _t * (_b - _a) + _a; }
float3 lerp(float3 _a, float3 _b, float3 _t) { return _t * (_b - _a) + _a; }
float3 lerp(float3 _a, float3 _b, float _t) { return _t * (_b - _a) + _a; }
float4 lerp(float4 _a, float4 _b, float4 _t) { return _t * (_b - _a) + _a; }
float4 lerp(float4 _a, float4 _b, float _t) { return _t * (_b - _a) + _a; }

float saturate(float _Value)
{
    return clamp(_Value,0.0,1.0);
}

vec2 saturate(vec2 _Value)
{
    return clamp(_Value,0.0,1.0);
}

vec3 saturate(vec3 _Value)
{
    return clamp(_Value,0.0,1.0);
}

vec4 saturate(vec4 _Value)
{
    return clamp(_Value,0.0,1.0);
}

void sincos(float _Angle,out float _Sn,out float _Cs)
{
    _Sn = sin(_Angle);
    _Cs = cos(_Angle);
}

float ldexp(float _Mul,float _Exp)
{
    return _Mul * pow(2.0,_Exp);
}

float log10(float _Val)
{
    return log(_Val) / log(10.0);
}

//Hyperbolic functions unverified!
float sinh(float _Angle)
{
    float Ret = exp(_Angle) - exp(-_Angle);
    return Ret / 2.0;
}

float cosh(float _Angle)
{
    float Ret = exp(_Angle) + exp(-_Angle);
    return Ret / 2.0;
}

float tanh(float _Angle)
{
    return (exp(2.0 * _Angle) - 1.0) / (exp(2.0 * _Angle) + 1.0);
}

int Index(float _iValue) { return int(_iValue); }
float ARL(float _Arg1) { return floor(_Arg1); }

vec4 tex2Dvtx(sampler2D _Sampler,vec4 _TC) { return texture2D(_Sampler,_TC.xy); }
vec4 texCUBEvtx(samplerCube _Sampler,vec4 _TC) { return textureCube(_Sampler,_TC.xyz); }
#define eColor fc[0]
uniform float4 fc[1];
#define oCol gl_FragData[0]
// Flags: mwcomp0

void main()
{

		oCol = eColor;
	}