From 194ebeafd7381256573fc330f77a8c7003f12dcb Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Mon, 27 May 2019 03:08:46 -0400 Subject: [PATCH] Return after printing gl_FrontFacing variable, it does not need a define --- profiles/mojoshader_profile_glsl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/mojoshader_profile_glsl.c b/profiles/mojoshader_profile_glsl.c index 910c217a..9a488678 100644 --- a/profiles/mojoshader_profile_glsl.c +++ b/profiles/mojoshader_profile_glsl.c @@ -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) {