Return after printing gl_FrontFacing variable, it does not need a define
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Mon, 27 May 2019 03:08:46 -0400
changeset 1203 825944b0dbfc
parent 1202 3e07483a681c
child 1204 21422b28cfd4
Return after printing gl_FrontFacing variable, it does not need a define
profiles/mojoshader_profile_glsl.c
--- a/profiles/mojoshader_profile_glsl.c	Sat Apr 27 17:03:28 2019 -0400
+++ b/profiles/mojoshader_profile_glsl.c	Mon May 27 03:08:46 2019 -0400
@@ -1027,6 +1027,7 @@
                 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)
             {