Skip to content

Commit

Permalink
Fixed logic error in assembler, to decide if oTx registers are availa…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
icculus committed Dec 12, 2008
1 parent 263e3b6 commit 339f441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -482,7 +482,7 @@ static int parse_register_name(Context *ctx, RegisterType *rtype, int *rnum)
} // 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
Expand Down

0 comments on commit 339f441

Please sign in to comment.