Skip to content

Commit

Permalink
Moved postmod_str in arb1 profile source arg creation.
Browse files Browse the repository at this point in the history
This fixes SRCMOD_ABS.

--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 20, 2008
1 parent e5ecb78 commit 0d3cd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader.c
Expand Up @@ -3481,9 +3481,9 @@ static const char *make_ARB1_srcarg_string_in_buf(Context *ctx,
assert(i < sizeof (swizzle_str));

snprintf(buf, buflen, "%s%s%s%s%s%s%s%s%s%s", premod_str,
regtype_str, regnum_str, postmod_str, rel_lbracket,
regtype_str, regnum_str, rel_lbracket,
rel_regtype_str, rel_swizzle, rel_offset, rel_rbracket,
swizzle_str);
swizzle_str, postmod_str);
// !!! FIXME: make sure the scratch buffer was large enough.
return buf;
} // make_ARB1_srcarg_string_in_buf
Expand Down

0 comments on commit 0d3cd02

Please sign in to comment.