Skip to content

Commit

Permalink
Return after printing gl_FrontFacing variable, it does not need a define
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed May 27, 2019
1 parent f9ef4d0 commit 194ebea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions profiles/mojoshader_profile_glsl.c
Expand Up @@ -1027,6 +1027,7 @@ void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum,
push_output(ctx, &ctx->globals);
output_line(ctx, "float %s = gl_FrontFacing ? 1.0 : -1.0;", var);
pop_output(ctx);
return;
} // if
else if (mt == MISCTYPE_TYPE_POSITION)
{
Expand Down

0 comments on commit 194ebea

Please sign in to comment.