Skip to content

Commit

Permalink
Determine constant arrays before setting any local pointers. Safety f…
Browse files Browse the repository at this point in the history
…irst!

--HG--
branch : trunk
  • Loading branch information
icculus committed Jul 2, 2008
1 parent 21d3a4a commit 8e875f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader.c
Expand Up @@ -7210,12 +7210,12 @@ static void process_definitions(Context *ctx)
// !!! FIXME: DCL'd before use (default to 2d?). We aren't checking
// !!! FIXME: this at the moment, though.

determine_constants_arrays(ctx); // in case this hasn't been called yet.

RegisterList *uitem = &ctx->uniforms;
RegisterList *prev = &ctx->used_registers;
RegisterList *item = prev->next;

determine_constants_arrays(ctx); // in case this hasn't been called yet.

while (item != NULL)
{
RegisterList *next = item->next;
Expand Down

0 comments on commit 8e875f5

Please sign in to comment.