Fixed logic error in assembler, to decide if oTx registers are available.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Dec 2008 00:08:12 -0500
changeset 502 3cb501248990
parent 501 314aa5c32820
child 503 ec8e7739cf5d
Fixed logic error in assembler, to decide if oTx registers are available.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Thu Dec 11 00:01:08 2008 -0500
+++ b/mojoshader_assembler.c	Fri Dec 12 00:08:12 2008 -0500
@@ -482,7 +482,7 @@
     } // else if
     else if (strcasecmp(t, "oT") == 0)
     {
-        if (shader_is_vertex(ctx) || shader_version_atleast(ctx, 3, 0))
+        if (shader_is_vertex(ctx) && shader_version_atleast(ctx, 3, 0))
             return fail(ctx, "Output register not valid in this shader type");
         regtype = REG_TYPE_OUTPUT;
     } // else if