After
c61bc6e ("util: port _mesa_strto[df] to C"), "make check"
fails due to a missing _mesa_locale_init. Fixup this oversight,
by moving the stand-alone compiler initializer inside
initialize_context_to_defaults().
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
#include "program/hash_table.h"
#include "loop_analysis.h"
#include "standalone_scaffolding.h"
-#include "util/strtod.h"
static int glsl_version = 330;
{
initialize_context_to_defaults(ctx, api);
- _mesa_locale_init();
-
/* The standalone compiler needs to claim support for almost
* everything in order to compile the built-in functions.
*/
#include <stdio.h>
#include <string.h>
#include "util/ralloc.h"
+#include "util/strtod.h"
void
_mesa_warning(struct gl_context *ctx, const char *fmt, ...)
for (int sh = 0; sh < MESA_SHADER_STAGES; ++sh)
memcpy(&ctx->Const.ShaderCompilerOptions[sh], &options, sizeof(options));
+
+ _mesa_locale_init();
}