diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 02:21:14 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 02:21:14 +0000 |
commit | 9e98f61b07269b80b58cea6ff962a80d14cb5f92 (patch) | |
tree | 903d5f17df02326fd610c214408e34164d4c1461 /gpu | |
parent | 0ccfedd223a18147a11ea1422a527ef024ba5359 (diff) | |
download | chromium_src-9e98f61b07269b80b58cea6ff962a80d14cb5f92.zip chromium_src-9e98f61b07269b80b58cea6ff962a80d14cb5f92.tar.gz chromium_src-9e98f61b07269b80b58cea6ff962a80d14cb5f92.tar.bz2 |
Enable use of highp precision in GLSL ES shaders.
This is on by default in ANGLE revisions prior to shader translator version 110 and off by default in subsequent versions.
Review URL: https://chromiumcodereview.appspot.com/12398031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/gles2_cmd_decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc index 288d7c9..28d0069 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc @@ -2525,6 +2525,10 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() { group_->max_fragment_uniform_vectors(); resources.MaxDrawBuffers = 1; +#if (ANGLE_SH_VERSION >= 110) + resources.FragmentPrecisionHigh = 1; +#endif + if (force_webgl_glsl_validation_) { resources.OES_standard_derivatives = derivatives_explicitly_enabled_; } else { |