Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 897e261e5a6353a9be5c0ccbcb3a43b610fde17d..d67d1118ed84f1b654c3787251ea339146bc3571 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) { |