Can't support SINCOS instruction in arb1 vertex shaders. trunk
authorRyan C. Gordon <icculus@icculus.org>
Thu, 29 May 2008 12:27:24 -0400
branchtrunk
changeset 338 fa828cd43079
parent 337 bdb17e07d97e
child 339 4b1e0c45a6b8
Can't support SINCOS instruction in arb1 vertex shaders.
mojoshader.c
--- a/mojoshader.c	Thu May 29 12:27:00 2008 -0400
+++ b/mojoshader.c	Thu May 29 12:27:24 2008 -0400
@@ -4085,7 +4085,9 @@
     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);