Clearly this isn't correct. :) trunk
authorRyan C. Gordon <icculus@icculus.org>
Thu, 03 Apr 2008 05:56:42 -0400
branchtrunk
changeset 63 97048a10fc97
parent 62 c504bde0e80c
child 64 4f4bd3c7eef6
Clearly this isn't correct. :)
mojoshader.c
--- a/mojoshader.c	Thu Apr 03 05:50:53 2008 -0400
+++ b/mojoshader.c	Thu Apr 03 05:56:42 2008 -0400
@@ -1625,7 +1625,9 @@
 
 static void emit_GLSL_LOOP(Context *ctx)
 {
-    fail(ctx, "unimplemented.");  // !!! FIXME
+    //fail(ctx, "unimplemented.");  // !!! FIXME
+    output_line(ctx, "for (BLAH, BLAH, BLAH) {");
+    ctx->indent++;
 } // emit_GLSL_LOOP
 
 static void emit_GLSL_RET(Context *ctx)
@@ -1641,7 +1643,9 @@
 
 static void emit_GLSL_ENDLOOP(Context *ctx)
 {
-    fail(ctx, "unimplemented.");  // !!! FIXME
+    //fail(ctx, "unimplemented.");  // !!! FIXME
+    ctx->indent--;
+    output_line(ctx, "}");
 } // emit_GLSL_ENDLOOP
 
 static void emit_GLSL_LABEL(Context *ctx)