diff options
Diffstat (limited to 'src/glsl/tests/condition-05.glsl')
-rw-r--r-- | src/glsl/tests/condition-05.glsl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/glsl/tests/condition-05.glsl b/src/glsl/tests/condition-05.glsl new file mode 100644 index 00000000000..3dff18f519d --- /dev/null +++ b/src/glsl/tests/condition-05.glsl @@ -0,0 +1,13 @@ +#version 120 +/* PASS */ + +uniform bool a; +uniform int b; + +void main() +{ + float x; + + x = (a) ? 2.0 : b; + gl_Position = vec4(x); +} |