Skip to content

Commit

Permalink
Fixed arb1 version of ps_1_1 TEXLD opcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 17, 2012
1 parent 30c135a commit b7e929b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mojoshader.c
Expand Up @@ -5422,12 +5422,9 @@ static void emit_ARB1_TEXLD(Context *ctx)
{
// Note that this code counts on the register not having swizzles, etc.
DestArgInfo *info = &ctx->dest_arg;
char regnum_str[16];
const char *dst = get_ARB1_register_string(ctx, info->regtype,
info->regnum, regnum_str,
sizeof (regnum_str));
output_line(ctx, "TEX %s%s, %s%s, texture[%d], 2D;",
dst, regnum_str, dst, regnum_str, info->regnum);
char dst[64]; get_ARB1_destarg_varname(ctx, dst, sizeof (dst));
output_line(ctx, "TEX %s, %s, texture[%d], 2D;",
dst, dst, info->regnum);
return;
} // if

Expand Down

0 comments on commit b7e929b

Please sign in to comment.