mojoshader_assembler.c
changeset 1298 b70ccc2c7a51
parent 1291 db27fb09421a
child 1306 0c0304e7d215
--- a/mojoshader_assembler.c	Mon Jul 20 20:07:44 2020 -0400
+++ b/mojoshader_assembler.c	Thu Jul 23 05:12:09 2020 -0400
@@ -1471,6 +1471,7 @@
     ctx->malloc_data = d;
     ctx->current_position = MOJOSHADER_POSITION_BEFORE;
     ctx->default_writemask = 0xF;
+    ctx->default_swizzle = 0xE4;  // 0xE4 == 11100100 ... 0 1 2 3. No swizzle.
 
     const size_t outblk = sizeof (uint32) * 4 * 64; // 64 4-token instrs.
     ctx->output = buffer_create(outblk, MallocBridge, FreeBridge, ctx);