Skip to content

Commit

Permalink
Flag registers replicated for matrix as used.
Browse files Browse the repository at this point in the history
This lets GLSL profile know that it needs to define variables for each row
of the matrix, not just the first one.

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 4, 2008
1 parent 5b19939 commit cc15d47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader.c
Expand Up @@ -2829,6 +2829,7 @@ static void sourcearg_matrix_replicate(Context *ctx, const int idx,
{
memcpy(dst, src, sizeof (SourceArgInfo));
dst->regnum += (i + 1);
set_used_register(ctx, dst->regtype, dst->regnum);
} // for
} // sourcearg_matrix_replicate

Expand Down

0 comments on commit cc15d47

Please sign in to comment.