--- a/profiles/mojoshader_profile_glsl.c Mon May 04 09:55:32 2020 -0400
+++ b/profiles/mojoshader_profile_glsl.c Thu May 21 12:00:55 2020 -0400
@@ -641,7 +641,7 @@
if (shader_is_vertex(ctx))
output_line(ctx, "uniform float vpFlip;");
#endif
- if (ctx->glsl_need_max_float)
+ if (ctx->need_max_float)
output_line(ctx, "const float FLT_MAX = 1e38;");
pop_output(ctx);
} // emit_GLSL_finalize
@@ -1196,7 +1196,7 @@
{
char src0[64]; make_GLSL_srcarg_string_masked(ctx, 0, src0, sizeof (src0));
char code[128];
- ctx->glsl_need_max_float = 1;
+ ctx->need_max_float = 1;
make_GLSL_destarg_assign(ctx, code, sizeof (code), "(%s == 0.0) ? FLT_MAX : 1.0 / %s", src0, src0);
output_line(ctx, "%s", code);
} // emit_GLSL_RCP
@@ -1205,7 +1205,7 @@
{
char src0[64]; make_GLSL_srcarg_string_masked(ctx, 0, src0, sizeof (src0));
char code[128];
- ctx->glsl_need_max_float = 1;
+ ctx->need_max_float = 1;
make_GLSL_destarg_assign(ctx, code, sizeof (code), "(%s == 0.0) ? FLT_MAX : inversesqrt(abs(%s))", src0, src0);
output_line(ctx, "%s", code);
} // emit_GLSL_RSQ