diff options
author | Brian Paul <[email protected]> | 2010-12-13 08:41:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-12-14 12:38:38 -0700 |
commit | bb10e081c8ddc452bca44ba583f239219a5b9372 (patch) | |
tree | 5aaaf091bb32aef3d04cca04cc9acac07f85c2c6 /src/glsl/s_expression.cpp | |
parent | dfbc20593ec89ef5ddcb0dba3b05ea95e296861e (diff) |
glsl: new glsl_strtod() wrapper to fix decimal point interpretation
We always want to use '.' as the decimal point.
See http://bugs.freedesktop.org/show_bug.cgi?id=24531
NOTE: this is a candidate for the 7.10 branch.
Diffstat (limited to 'src/glsl/s_expression.cpp')
-rw-r--r-- | src/glsl/s_expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/s_expression.cpp b/src/glsl/s_expression.cpp index 4c8829fea9a..e420cd6e7ec 100644 --- a/src/glsl/s_expression.cpp +++ b/src/glsl/s_expression.cpp @@ -62,7 +62,7 @@ read_atom(void *ctx, const char *& src) // Check if the atom is a number. char *float_end = NULL; - double f = strtod(src, &float_end); + double f = glsl_strtod(src, &float_end); if (float_end != src) { char *int_end = NULL; int i = strtol(src, &int_end, 10); |