From 184f420fff88b82613135aa9c65f11de0464a851 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 8 May 2008 20:39:40 -0400 Subject: [PATCH] Let's try making an assign with no writemask into a no-op in the GLSL profile. This may or may not work. --HG-- branch : trunk --- mojoshader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader.c b/mojoshader.c index 43604adc..6f7133e3 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -1724,7 +1724,7 @@ static const char *make_GLSL_destarg_assign(Context *ctx, const char *fmt, ...) const DestArgInfo *arg = &ctx->dest_arg; if (arg->writemask == 0) - fail(ctx, "BUG: empty writemask"); // !!! FIXME: make this a no-op? + return ""; // no writemask? It's a no-op. char clampbuf[32] = { '\0' }; const char *clampleft = "";