aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-03-16 11:56:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-16 11:56:29 -0700
commit3318ee7d5e9ac352bcf8ab6af5724d9a94e6e198 (patch)
treead94bcb33aa4933ee8fb2f79186bcbb920d79c9d /src/gpu
parent741143878b23d22cd9cb7b9cba8055179115ce17 (diff)
Use C locale for numerics when emitting shaders.
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gl/builders/GrGLProgramBuilder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
index bad1d63ae7..8669d239c7 100644
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
@@ -53,6 +53,8 @@ private:
const int GrGLProgramBuilder::kVarsPerBlock = 8;
GrGLProgram* GrGLProgramBuilder::CreateProgram(const DrawArgs& args, GrGLGpu* gpu) {
+ GrAutoLocaleSetter als("C");
+
// create a builder. This will be handed off to effects so they can use it to add
// uniforms, varyings, textures, etc
SkAutoTDelete<GrGLProgramBuilder> builder(CreateProgramBuilder(args, gpu));