Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SINCOS fix in nv2 profile.
--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 24, 2008
1 parent 8c90837 commit bd93a65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mojoshader.c
Expand Up @@ -4259,13 +4259,13 @@ static void emit_ARB1_SINCOS(Context *ctx)
const char *dst = get_ARB1_destarg_varname(ctx);
const char *src0 = make_ARB1_srcarg_string(ctx, 0);
if (writemask_x(mask))
output_line(ctx, "COS%s.x, %s;", dst, src0);
output_line(ctx, "COS %s.x, %s;", dst, src0);
else if (writemask_y(mask))
output_line(ctx, "SIN%s.y, %s;", dst, src0);
output_line(ctx, "SIN %s.y, %s;", dst, src0);
else if (writemask_xy(mask))
{
output_line(ctx, "SIN%s.x, %s;", dst, src0);
output_line(ctx, "COS%s.y, %s;", dst, src0);
output_line(ctx, "SIN %s.x, %s;", dst, src0);
output_line(ctx, "COS %s.y, %s;", dst, src0);
} // else if
} // if

Expand Down

0 comments on commit bd93a65

Please sign in to comment.