mojoshader.c
changeset 1148 3a061cc281c2
parent 1146 31337471b909
child 1150 02c0f0afb39a
--- a/mojoshader.c	Sat Sep 26 23:34:00 2015 -0400
+++ b/mojoshader.c	Tue Oct 06 07:22:47 2015 -0500
@@ -1582,7 +1582,7 @@
     if (set_output(ctx, &ctx->mainline))
     {
         const size_t len = ((size_t) (ctx->tokens - ctx->orig_tokens)) * sizeof (uint32);
-        buffer_append(ctx->mainline, (const char *) ctx->tokens, len);
+        buffer_append(ctx->mainline, (const char *) ctx->orig_tokens, len);
     } // if
 } // emit_BYTECODE_finalize