From e5cc3e8f43d4eee5374327ff727b2e3fd5f32e50 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Mon, 16 Dec 2019 00:08:35 -0500 Subject: [PATCH] MSVC buildfix (also removes redundant ES check) --- profiles/mojoshader_profile_glsl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/profiles/mojoshader_profile_glsl.c b/profiles/mojoshader_profile_glsl.c index 6ea81de3..6f720085 100644 --- a/profiles/mojoshader_profile_glsl.c +++ b/profiles/mojoshader_profile_glsl.c @@ -957,12 +957,7 @@ void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum, if (support_glsles(ctx)) break; // GLSL ES does not have gl_FogFragCoord #endif -#if SUPPORT_PROFILE_GLSLES - const int skipFogFragCoord = support_glsles(ctx) || (index > 0); -#else - const int skipFogFragCoord = (index > 0); -#endif - if (!skipFogFragCoord) + if (index == 0) { usage_str = "gl_FogFragCoord"; } // if