From 721efc04da96451297ca1defe703fe755c212baa Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 29 Mar 2010 14:11:10 -0700 Subject: Add several simple if-statement tests --- tests/if-03.glsl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/if-03.glsl (limited to 'tests/if-03.glsl') diff --git a/tests/if-03.glsl b/tests/if-03.glsl new file mode 100644 index 0000000000..179618c716 --- /dev/null +++ b/tests/if-03.glsl @@ -0,0 +1,11 @@ +/* PASS */ + +uniform bool a; + +void main() +{ + if (a) + gl_Position = vec4(1.0, 0.0, 0.0, 1.0); + else + gl_Position = vec4(0.0, 1.0, 0.0, 1.0); +} -- cgit v1.2.3