summaryrefslogtreecommitdiff
path: root/tests/if-03.glsl
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-29 14:11:10 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-29 14:11:10 -0700
commit721efc04da96451297ca1defe703fe755c212baa (patch)
tree3f63edefd941622c96ab289b4948d04e618bd16c /tests/if-03.glsl
parent17d86f4371da413176ba365ca26a58bac172d365 (diff)
Add several simple if-statement tests
Diffstat (limited to 'tests/if-03.glsl')
-rw-r--r--tests/if-03.glsl11
1 files changed, 11 insertions, 0 deletions
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);
+}