Commit b57600ba authored by Timothy Arceri's avatar Timothy Arceri

glsl-1.40-compat: add basic compat test for built-in constants

This test is copied from the glsl-1.10 tests. We just want to be
sure that these built-in are still available in a compat profile.

This was broken when compat was enabled for OpenGL 3.1 in
radeonsi. This test will help us from regressing again in future.
Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <>
parent 6fa083a0
GL COMPAT >= 3.1
GLSL >= 1.40
[vertex shader]
void main()
gl_Position = gl_Vertex;
// front color values should all be >= 1.0
gl_FrontColor = vec4(gl_MaxLights, gl_MaxClipPlanes,
[fragment shader]
void main()
gl_FragColor = gl_Color;
draw rect -1 -1 2 2
relative probe rgba (0.5, 0.5) (1.0, 1.0, 1.0, 1.0)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment