Skip to content

Commit

Permalink
Work on destination modifiers in arb1 profile.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed May 25, 2008
1 parent e0584da commit 6e9ba49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mojoshader.c
Expand Up @@ -3448,13 +3448,13 @@ static const char *make_ARB1_destarg_string(Context *ctx)
case 0xF: result_shift_str = "_d2"; break;
} // switch

const char *sat_str = (arg->result_mod & MOD_SATURATE) ? "_sat" : "";
const char *pp_str = (arg->result_mod & MOD_PP) ? "_pp" : "";
const char *cent_str = (arg->result_mod & MOD_CENTROID) ? "_centroid" : "";
const char *sat_str = (arg->result_mod & MOD_SATURATE) ? "_SAT" : "";
const char *pp_str = ""; // no partial precision, but that's okay.
const char *cent_str = "";

if (arg->result_mod != 0x0)
if (arg->result_mod & MOD_CENTROID)
{
fail(ctx, "dest register modifiers currently unsupported in arb1");
fail(ctx, "dest register MOD_CENTROID currently unsupported in arb1");
return "";
} // if

Expand Down

0 comments on commit 6e9ba49

Please sign in to comment.