mojoshader.c
changeset 453 5c4041a69323
parent 452 c339e8b83bbe
child 455 d99f47386d51
--- a/mojoshader.c	Sat Sep 06 15:15:10 2008 -0400
+++ b/mojoshader.c	Sat Sep 06 15:27:18 2008 -0400
@@ -4833,11 +4833,7 @@
     //  We just map the x component to w. If it's negative, the fragment
     //  would discard anyhow, otherwise, it'll pass through okay. This saves
     //  us a temp register.
-    const int origswiz = ctx->source_args[0].swizzle;
-    ctx->source_args[0].swizzle = (origswiz & 0x3F) | ((origswiz & 0x3) << 6);
-    ctx->source_args[0].swizzle_w = ctx->source_args[0].swizzle_x;
-    const char *src0 = make_ARB1_srcarg_string(ctx, 0);
-    output_line(ctx, "KIL %s;", src0);
+    output_line(ctx, "KIL %s.xyzx;", get_ARB1_destarg_varname(ctx));
 } // emit_ARB1_TEXKILL
 
 EMIT_ARB1_OPCODE_UNIMPLEMENTED_FUNC(TEXBEM)