mojoshader_assembler.c
changeset 502 3cb501248990
parent 500 38ce929323c2
child 504 d79ae3b98f47
--- 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