From e5db22a1eb2b741bed23da1e8ee0015599118677 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 3 Apr 2008 05:56:42 -0400 Subject: [PATCH] Clearly this isn't correct. :) --HG-- branch : trunk --- mojoshader.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index 33d05222..fa79f55c 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -1625,7 +1625,9 @@ static void emit_GLSL_CALLNZ(Context *ctx) 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_RET(Context *ctx) 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)