summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/dowhile2.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fpglsl/dowhile2.glsl')
-rw-r--r--progs/fpglsl/dowhile2.glsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/fpglsl/dowhile2.glsl b/progs/fpglsl/dowhile2.glsl
new file mode 100644
index 00000000000..f3e00b8e865
--- /dev/null
+++ b/progs/fpglsl/dowhile2.glsl
@@ -0,0 +1,10 @@
+void main() {
+ float sum = 0.0;
+ do {
+ sum += 0.1;
+ if (sum < 0.499999)
+ continue;
+ break;
+ } while (true);
+ gl_FragColor = vec4(sum);
+}