Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed my braindead MOD_SATURATE code in GLSL profile.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 22, 2008
1 parent eca33b1 commit 29636ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojoshader.c
Expand Up @@ -1643,7 +1643,7 @@ static const char *make_GLSL_destarg_assign(Context *ctx, const char *fmt, ...)
if (arg->writemask == 0x0)
fail(ctx, "BUG: empty writemask"); // !!! FIXME: make this a no-op?

char clampbuf[16] = { '\0' };
char clampbuf[32] = { '\0' };
const char *clampleft = "";
const char *clampright = "";
if (arg->result_mod & MOD_SATURATE)
Expand All @@ -1656,6 +1656,7 @@ static const char *make_GLSL_destarg_assign(Context *ctx, const char *fmt, ...)
{
snprintf(clampbuf, sizeof (clampbuf),
", vec%d(0.0), vec%d(1.0))", vecsize, vecsize);
clampright = clampbuf;
} // else
} // if

Expand Down

0 comments on commit 29636ac

Please sign in to comment.