Skip to content

Commit

Permalink
Eh, I don't like the indentation. :/
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 20, 2008
1 parent bf3d8bc commit fa5dc43
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mojoshader.c
Expand Up @@ -4329,8 +4329,6 @@ static void nv2_if(Context *ctx)

output_line(ctx, "BRA %s (EQ.x);", failbranch);
} // else

ctx->indent++;
} // nv2_if


Expand All @@ -4348,14 +4346,10 @@ static void emit_ARB1_IF(Context *ctx)
{
fail(ctx, "branching unsupported in this profile");
} // else

ctx->indent++;
} // emit_ARB1_IF

static void emit_ARB1_ELSE(Context *ctx)
{
ctx->indent--;

// nv2 fragment programs have a real ELSE.
if ( (ctx->support_nv2) && (shader_is_pixel(ctx)) )
output_line(ctx, "ELSE");
Expand All @@ -4367,9 +4361,7 @@ static void emit_ARB1_ELSE(Context *ctx)

// At the end of the IF block, unconditionally jump to the ENDIF.
const int endlabel = allocate_if_label(ctx);
ctx->indent++;
output_line(ctx, "BRA %s;", get_ARB1_if_label_name(ctx, endlabel));
ctx->indent--;

// Now mark the ELSE section with a lable.
const int elselabel = ctx->if_labels_stack[ctx->if_labels_stack_index-1];
Expand All @@ -4383,15 +4375,11 @@ static void emit_ARB1_ELSE(Context *ctx)
{
fail(ctx, "branching unsupported in this profile");
} // else

ctx->indent++;
} // emit_ARB1_ELSE


static void emit_ARB1_ENDIF(Context *ctx)
{
ctx->indent--;

// nv2 fragment programs have a real ENDIF.
if ( (ctx->support_nv2) && (shader_is_pixel(ctx)) )
output_line(ctx, "ENDIF");
Expand Down

0 comments on commit fa5dc43

Please sign in to comment.