Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Assert on unknown operand type (thanks Kate!)
  • Loading branch information
flibitijibibo committed May 29, 2019
1 parent 9b90bf8 commit 56c8919
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader.c
Expand Up @@ -2724,6 +2724,10 @@ static void parse_preshader(Context *ctx, const uint32 *tokens, uint32 tokcount)
preshader->temp_count = item + 1;
break;
} // case

default:
assert(0 && "Unhandled fxlc.tokens[1] in parse_preshader!");
break;
} // switch

operand->index = item;
Expand Down

0 comments on commit 56c8919

Please sign in to comment.