Skip to content

Commit

Permalink
Can't support SINCOS instruction in arb1 vertex shaders.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed May 29, 2008
1 parent 9811feb commit a224d85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mojoshader.c
Expand Up @@ -4085,7 +4085,9 @@ static void emit_ARB1_SINCOS(Context *ctx)
const char *dst = make_ARB1_destarg_string(ctx);
const char *src0 = make_ARB1_srcarg_string(ctx, 0);

if (writemask_x(mask))
if (shader_is_vertex(ctx))
fail(ctx, "SINCOS not supported in arb1 vertex shaders");
else if (writemask_x(mask))
output_line(ctx, "COS%s, %s;", dst, src0);
else if (writemask_y(mask))
output_line(ctx, "SIN%s, %s;", dst, src0);
Expand Down

0 comments on commit a224d85

Please sign in to comment.