Skip to content

Commit

Permalink
Fixed use of wrong variable in setting preshader temp register counts.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 25, 2011
1 parent baf58a3 commit bf298b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader.c
Expand Up @@ -7451,8 +7451,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 + 1;
if (item >= preshader->temp_count)
preshader->temp_count = item + 1;
break;
} // case
} // switch
Expand Down

0 comments on commit bf298b1

Please sign in to comment.