aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
authorbsalomon <bsalomon@google.com>2015-03-16 11:56:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-16 11:56:29 -0700
commit3318ee7d5e9ac352bcf8ab6af5724d9a94e6e198 (patch)
treead94bcb33aa4933ee8fb2f79186bcbb920d79c9d /tests/GLProgramsTest.cpp
parent741143878b23d22cd9cb7b9cba8055179115ce17 (diff)
Use C locale for numerics when emitting shaders.
BUG=skia:3330 Review URL: https://codereview.chromium.org/1012723002
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 897e261e5a..d67d1118ed 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -337,6 +337,14 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
}
DEF_GPUTEST(GLPrograms, reporter, factory) {
+ // Set a locale that would cause shader compilation to fail because of , as decimal separator.
+ // skbug 3330
+#ifdef SK_BUILD_FOR_WIN
+ GrAutoLocaleSetter als("sv-SE");
+#else
+ GrAutoLocaleSetter als("sv_SE.UTF-8");
+#endif
+
for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type));
if (context) {