Skip to content

Commit

Permalink
We already calculated this, don't derefence pointer again.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 23, 2012
1 parent d97a3e5 commit 7ca81ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -9054,7 +9054,7 @@ static void process_definitions(Context *ctx)

// Apparently this is an attribute that wasn't DCL'd.
// Add it to the attribute list; deal with it later.
add_attribute_register(ctx, item->regtype, item->regnum,
add_attribute_register(ctx, regtype, regnum,
MOJOSHADER_USAGE_UNKNOWN, 0, 0xF, 0);
break;

Expand Down

0 comments on commit 7ca81ca

Please sign in to comment.