Commit 01930488 by Zhenyao Mo

Fix tests due to added output arg to Translator.

BUG=angleproject:933 TEST=angle_unittests Change-Id: I548f1f6ae29760bf4251e5dadeac8a27a4027ceb Reviewed-on: https://chromium-review.googlesource.com/255585Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarZhenyao Mo <zmo@chromium.org>
parent 05b6b7fc
...@@ -29,7 +29,8 @@ class CollectVariablesTest : public testing::Test ...@@ -29,7 +29,8 @@ class CollectVariablesTest : public testing::Test
ShInitBuiltInResources(&resources); ShInitBuiltInResources(&resources);
resources.MaxDrawBuffers = 8; resources.MaxDrawBuffers = 8;
mTranslator = new TranslatorGLSL(mShaderType, SH_GLES3_SPEC); mTranslator = new TranslatorGLSL(
mShaderType, SH_GLES3_SPEC, SH_GLSL_COMPATIBILITY_OUTPUT);
ASSERT_TRUE(mTranslator->Init(resources)); ASSERT_TRUE(mTranslator->Init(resources));
} }
......
...@@ -27,7 +27,8 @@ class DebugShaderPrecisionTest : public testing::Test ...@@ -27,7 +27,8 @@ class DebugShaderPrecisionTest : public testing::Test
mTranslatorESSL = new TranslatorESSL(GL_FRAGMENT_SHADER, SH_GLES2_SPEC); mTranslatorESSL = new TranslatorESSL(GL_FRAGMENT_SHADER, SH_GLES2_SPEC);
ASSERT_TRUE(mTranslatorESSL->Init(resources)); ASSERT_TRUE(mTranslatorESSL->Init(resources));
mTranslatorGLSL = new TranslatorGLSL(GL_FRAGMENT_SHADER, SH_GLES2_SPEC); mTranslatorGLSL = new TranslatorGLSL(
GL_FRAGMENT_SHADER, SH_GLES2_SPEC, SH_GLSL_COMPATIBILITY_OUTPUT);
ASSERT_TRUE(mTranslatorGLSL->Init(resources)); ASSERT_TRUE(mTranslatorGLSL->Init(resources));
} }
...@@ -92,7 +93,8 @@ class NoDebugShaderPrecisionTest : public testing::Test ...@@ -92,7 +93,8 @@ class NoDebugShaderPrecisionTest : public testing::Test
ShBuiltInResources resources; ShBuiltInResources resources;
ShInitBuiltInResources(&resources); ShInitBuiltInResources(&resources);
mTranslator = new TranslatorGLSL(GL_FRAGMENT_SHADER, SH_GLES2_SPEC); mTranslator = new TranslatorGLSL(
GL_FRAGMENT_SHADER, SH_GLES2_SPEC, SH_GLSL_COMPATIBILITY_OUTPUT);
ASSERT_TRUE(mTranslator->Init(resources)); ASSERT_TRUE(mTranslator->Init(resources));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment