mojoshader.c
changeset 1299 02d36217591b
parent 1291 db27fb09421a
child 1309 b7f37f047a81
--- a/mojoshader.c	Thu Jul 23 05:12:09 2020 -0400
+++ b/mojoshader.c	Thu Jul 23 18:16:22 2020 -0400
@@ -1736,16 +1736,6 @@
         TextureType ttyp = (dims == 2) ? TEXTURE_TYPE_2D : TEXTURE_TYPE_CUBE;
         add_sampler(ctx, dst->regnum, ttyp, texbem);
     } // if
-
-    add_attribute_register(ctx, REG_TYPE_TEXTURE, dst->regnum,
-                           MOJOSHADER_USAGE_TEXCOORD, dst->regnum, 0xF, 0);
-
-    // Strictly speaking, there should be a TEX opcode prior to this call that
-    //  should fill in this metadata, but I'm not sure that's required for the
-    //  shader to assemble in D3D, so we'll do this so we don't fail with a
-    //  cryptic error message even if the developer didn't do the TEX.
-    add_attribute_register(ctx, REG_TYPE_TEXTURE, src->regnum,
-                           MOJOSHADER_USAGE_TEXCOORD, src->regnum, 0xF, 0);
 } // state_texops
 
 static void state_texbem(Context *ctx, const char *opcode)