From 8a18c443756c14d619d746ea4015f3ff101c40e1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 3 Apr 2008 05:49:02 -0400 Subject: [PATCH] BREAKP support in GLSL profile. --HG-- branch : trunk --- mojoshader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mojoshader.c b/mojoshader.c index 005f6929..6151fc93 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -2019,7 +2019,8 @@ static void emit_GLSL_TEXLDL(Context *ctx) static void emit_GLSL_BREAKP(Context *ctx) { - fail(ctx, "unimplemented."); // !!! FIXME + const char *src0 = make_GLSL_sourcearg_string(ctx, 0); + output_line(ctx, "if (%s) { break; }", src0); } // emit_GLSL_BREAKP static void emit_GLSL_RESERVED(Context *ctx)