Removed bogus validity check. trunk
authorRyan C. Gordon <icculus@icculus.org>
Mon, 12 May 2008 00:12:29 -0400
branchtrunk
changeset 315 6ad0df671c91
parent 314 1fda90a57aa8
child 316 93e70dbdba48
Removed bogus validity check. msdn docs never say TEXLDL src0 must be texture register.
mojoshader.c
--- a/mojoshader.c	Sun May 11 20:20:40 2008 -0400
+++ b/mojoshader.c	Mon May 12 00:12:29 2008 -0400
@@ -4339,8 +4339,6 @@
 {
     if (!shader_version_atleast(ctx, 3, 0))
         fail(ctx, "TEXLDL in version < Shader Model 3.0");
-    else if (ctx->source_args[0].regtype != REG_TYPE_TEXTURE)
-        fail(ctx, "TEXLDL src0 must be texture register");
     else if (ctx->source_args[1].regtype != REG_TYPE_SAMPLER)
         fail(ctx, "TEXLDL src1 must be sampler register");
 } // state_TEXLDL