Let's try making an assign with no writemask into a no-op in the GLSL profile. trunk
authorRyan C. Gordon <icculus@icculus.org>
Thu, 08 May 2008 20:39:40 -0400
branchtrunk
changeset 304 e0920b542bdf
parent 303 1d8a578cc8ec
child 305 d1d0c6111f79
Let's try making an assign with no writemask into a no-op in the GLSL profile. This may or may not work.
mojoshader.c
--- a/mojoshader.c	Thu May 08 19:34:37 2008 -0400
+++ b/mojoshader.c	Thu May 08 20:39:40 2008 -0400
@@ -1724,7 +1724,7 @@
     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 = "";