Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Whoops, these bits are the token count minus the instruction token.
  • Loading branch information
icculus committed Dec 10, 2008
1 parent b05678e commit f969d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -1332,7 +1332,7 @@ static int parse_instruction_token(Context *ctx)
return FAIL;

// insttoks bits are reserved and should be zero if < SM2.
const uint32 insttoks = shader_version_atleast(ctx, 2, 0) ? tokcount : 0;
const uint32 insttoks = shader_version_atleast(ctx, 2, 0) ? tokcount-1 : 0;

// write out the instruction token.
output_token(ctx, ((opcode & 0xFFFF) << 0) |
Expand Down

0 comments on commit f969d20

Please sign in to comment.