aboutsummaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/dowhile.glsl
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2010-03-10 16:31:18 -0500
committerZack Rusin <[email protected]>2010-03-10 16:32:07 -0500
commita44f362567f6ed4054e88d8afc94d38f19ed6269 (patch)
tree12643a0103bae89788157d55455a1454c0799a12 /progs/fpglsl/dowhile.glsl
parenta75519cb43c85b99cd54bc46dd83accda0cbd6cd (diff)
fpglsl: a few more useful glsl tests
Diffstat (limited to 'progs/fpglsl/dowhile.glsl')
-rw-r--r--progs/fpglsl/dowhile.glsl8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/fpglsl/dowhile.glsl b/progs/fpglsl/dowhile.glsl
new file mode 100644
index 00000000000..ed9d7296753
--- /dev/null
+++ b/progs/fpglsl/dowhile.glsl
@@ -0,0 +1,8 @@
+void main() {
+ float sum = 0.0;
+ do {
+ sum += 0.1;
+ break;
+ } while (true);
+ gl_FragColor = vec4(sum);
+}