Mesa (master): glsl: add a missing call to _mesa_locale_init

Matt Turner mattst88 at kemper.freedesktop.org
Fri Jul 3 18:11:30 UTC 2015


Module: Mesa
Branch: master
Commit: 83984f134b4a1e2829cb238c404bc82c98be6082
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=83984f134b4a1e2829cb238c404bc82c98be6082

Author: Erik Faye-Lund <kusmabite at gmail.com>
Date:   Fri Jul  3 09:46:01 2015 +0200

glsl: add a missing call to _mesa_locale_init

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 at gmail.com>
Signed-off-by: Erik Faye-Lund <kusmabite at gmail.com>

---

 src/glsl/main.cpp                   |    3 ---
 src/glsl/standalone_scaffolding.cpp |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 58651df..2341298 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -38,7 +38,6 @@
 #include "program/hash_table.h"
 #include "loop_analysis.h"
 #include "standalone_scaffolding.h"
-#include "util/strtod.h"
 
 static int glsl_version = 330;
 
@@ -47,8 +46,6 @@ initialize_context(struct gl_context *ctx, gl_api api)
 {
    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.
     */
diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp
index 00db61e..172c6f4 100644
--- a/src/glsl/standalone_scaffolding.cpp
+++ b/src/glsl/standalone_scaffolding.cpp
@@ -33,6 +33,7 @@
 #include <stdio.h>
 #include <string.h>
 #include "util/ralloc.h"
+#include "util/strtod.h"
 
 void
 _mesa_warning(struct gl_context *ctx, const char *fmt, ...)
@@ -191,4 +192,6 @@ void initialize_context_to_defaults(struct gl_context *ctx, gl_api api)
 
    for (int sh = 0; sh < MESA_SHADER_STAGES; ++sh)
       memcpy(&ctx->Const.ShaderCompilerOptions[sh], &options, sizeof(options));
+
+   _mesa_locale_init();
 }




More information about the mesa-commit mailing list