Skip to content

Commit

Permalink
Fixed source argument output in GLSL profile.
Browse files Browse the repository at this point in the history
Before it might do something like "abs(r0).xyz" when it probably should do
 "abs(r0.xyz)" instead.

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 22, 2008
1 parent 5dfed97 commit eca33b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -1826,7 +1826,7 @@ static char *make_GLSL_srcarg_string(Context *ctx, const int idx,

char *retval = get_scratch_buffer(ctx);
snprintf(retval, SCRATCH_BUFFER_SIZE, "%s%s%s%s%s",
premod_str, regtype_str, regnum_str, postmod_str, swiz_str);
premod_str, regtype_str, regnum_str, swiz_str, postmod_str);
// !!! FIXME: make sure the scratch buffer was large enough.
return retval;
} // make_GLSL_srcarg_string
Expand Down

0 comments on commit eca33b1

Please sign in to comment.