Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed temp count in preshaders.
  • Loading branch information
icculus committed Jun 2, 2011
1 parent ec7aebc commit 7524909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader.c
Expand Up @@ -7419,8 +7419,8 @@ static void parse_preshader(Context *ctx, uint32 tokcount)
case 7:
{
operand->type = MOJOSHADER_PRESHADEROPERAND_TEMP;
if (operand->index > preshader->temp_count)
preshader->temp_count = operand->index;
if (operand->index >= preshader->temp_count)
preshader->temp_count = operand->index + 1;
break;
} // case
} // switch
Expand Down

0 comments on commit 7524909

Please sign in to comment.