Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
assembler: Don't lose the TEXBEM opcode in the special ps_1_1 TEX det…
…ection.
  • Loading branch information
icculus committed Oct 12, 2020
1 parent 10bbf0e commit ffe4285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -1181,7 +1181,7 @@ static int parse_instruction_token(Context *ctx, Token token)
const unsigned int origtokenlen = ctx->tokenlen;

// "TEX" is only meaningful in ps_1_1.
if ((!shader_version_atleast(ctx, 1, 4)) && (check_token_segment(ctx, "TEX")))
if ((!shader_version_atleast(ctx, 1, 4)) && (ctx->tokenlen == 3) && (check_token_segment(ctx, "TEX")))
controls = 0;

// This might need to be TEXLD instead of TEXLDP.
Expand Down

0 comments on commit ffe4285

Please sign in to comment.