mojoshader.c
branchtrunk
changeset 286 902428e570b0
parent 284 ea52f9707795
child 287 561b36b043f3
--- a/mojoshader.c	Tue May 06 00:30:44 2008 -0400
+++ b/mojoshader.c	Tue May 06 15:00:39 2008 -0400
@@ -3800,6 +3800,12 @@
     set_defined_register(ctx, regtype, regnum);
 } // state_DCL
 
+static void state_TEXCOORD(Context *ctx)
+{
+    if (shader_version_atleast(ctx, 2, 0))
+        fail(ctx, "TEXCOORD in Shader Model >= 2.0");  // apparently removed.
+} // state_TEXCOORD
+
 static void state_FRC(Context *ctx)
 {
     const DestArgInfo *dst = &ctx->dest_arg;
@@ -4255,7 +4261,7 @@
     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
-    INSTRUCTION(TEXCOORD, TEXCOORD, MOJOSHADER_TYPE_PIXEL),
+    INSTRUCTION_STATE(TEXCOORD, TEXCOORD, MOJOSHADER_TYPE_PIXEL),
     INSTRUCTION_STATE(TEXKILL, D, MOJOSHADER_TYPE_PIXEL),
     INSTRUCTION(TEX, TEX, MOJOSHADER_TYPE_PIXEL),
     INSTRUCTION(TEXBEM, DS, MOJOSHADER_TYPE_PIXEL),