Skip to content

Commit

Permalink
Reinitialize Context::dwords on each new instruction.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 21, 2008
1 parent 31d283b commit 6e7f061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader.c
Expand Up @@ -3963,6 +3963,7 @@ static int parse_instruction_token(Context *ctx)
instruction->opcode_string);
} // if

memset(ctx->dwords, '\0', sizeof (ctx->dwords));
ctx->instruction_count++;
ctx->instruction_controls = controls;
ctx->predicated = predicated;
Expand Down

0 comments on commit 6e7f061

Please sign in to comment.