Skip to content

Commit

Permalink
More specific fail() message for profiles without branching support.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 27, 2008
1 parent c4329d7 commit f2ec180
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mojoshader.c
Expand Up @@ -4157,7 +4157,7 @@ static void emit_ARB1_CALL(Context *ctx)

if (!ctx->support_nv2) // no branching in stock ARB1.
{
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
return;
} // if

Expand All @@ -4173,7 +4173,7 @@ static void emit_ARB1_CALLNZ(Context *ctx)
const char *scratch = allocate_ARB1_scratch_reg_name(ctx);

if (!ctx->support_nv2) // no branching in stock ARB1.
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
else
{
// !!! FIXME: double-check this.
Expand Down Expand Up @@ -4470,7 +4470,7 @@ static void emit_ARB1_IF(Context *ctx)

else // stock ARB1 has no branching.
{
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
} // else
} // emit_ARB1_IF

Expand Down Expand Up @@ -4500,7 +4500,7 @@ static void emit_ARB1_ELSE(Context *ctx)

else // stock ARB1 has no branching.
{
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
} // else
} // emit_ARB1_ELSE

Expand All @@ -4521,7 +4521,7 @@ static void emit_ARB1_ENDIF(Context *ctx)

else // stock ARB1 has no branching.
{
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
} // else
} // emit_ARB1_ENDIF

Expand All @@ -4543,7 +4543,7 @@ static void emit_ARB1_BREAK(Context *ctx)

else // stock ARB1 has no branching.
{
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
} // else
} // emit_ARB1_BREAK

Expand Down Expand Up @@ -4700,7 +4700,7 @@ static void emit_ARB1_IFC(Context *ctx)

else // stock ARB1 has no branching.
{
fail(ctx, "branching unsupported in this profile");
failf(ctx, "branching unsupported in %s profile", ctx->profile->name);
} // else
} // emit_ARB1_IFC

Expand Down

0 comments on commit f2ec180

Please sign in to comment.