diff options
author | Eric Anholt <eric@anholt.net> | 2010-08-01 19:22:13 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-08-02 11:29:34 -0700 |
commit | cd89731daad9cf269fee6067c5ae167818fa961d (patch) | |
tree | 9415f92b0b4a08118d56b66ffee36ce1f62c42e3 /tests/shaders/glsl-floating-constant-120.shader_test | |
parent | 19f6e6f1a3a5bd1a6f9c4db8ce984e82c4e535a1 (diff) |
glsl-floating-constant-120: New test for 1.20's new FP constant lexing.
Diffstat (limited to 'tests/shaders/glsl-floating-constant-120.shader_test')
-rw-r--r-- | tests/shaders/glsl-floating-constant-120.shader_test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/shaders/glsl-floating-constant-120.shader_test b/tests/shaders/glsl-floating-constant-120.shader_test new file mode 100644 index 000000000..9a0509ae1 --- /dev/null +++ b/tests/shaders/glsl-floating-constant-120.shader_test @@ -0,0 +1,24 @@ +[require] +GL >= 2.0 +GLSL >= 1.20 + +[vertex shader] +void main() +{ + gl_Position = gl_Vertex; +} + +[fragment shader] +#version 120 + +void main() +{ + float f1 = 1f; + float f2 = 0.5F; + + gl_FragColor = vec4(f2, f1, 0.0, 0.0); +} + +[test] +draw rect -1 -1 2 2 +probe rgba 1 1 0.5 1.0 0.0 0.0 |