summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_decoder.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 22:00:46 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 22:00:46 +0000
commit9fcd39385ae39a68d3509238bd9ef83af1868fc7 (patch)
treef87d5e740dbe0b14341ff7a097dedeeaea250dc2 /gpu/command_buffer/service/gles2_cmd_decoder.cc
parent9597ff6926070a4c3bf3649589568352cf870456 (diff)
downloadchromium_src-9fcd39385ae39a68d3509238bd9ef83af1868fc7.zip
chromium_src-9fcd39385ae39a68d3509238bd9ef83af1868fc7.tar.gz
chromium_src-9fcd39385ae39a68d3509238bd9ef83af1868fc7.tar.bz2
Enables GL_OES_standard_derivatives
Note: With this CL standard derivaties will unfortunately be accessable by WebGL. Another CL will be coming ASAP that fixes this. TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/3446008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder.cc')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index b94d92a..139e1af 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -1654,9 +1654,8 @@ bool GLES2DecoderImpl::Initialize(gfx::GLContext* context,
resources.MaxFragmentUniformVectors =
group_->max_fragment_uniform_vectors();
resources.MaxDrawBuffers = 1;
- // TODO(alokp): Figure out if OES_standard_derivatives extension is
- // available.
- resources.OES_standard_derivatives = 0;
+ resources.OES_standard_derivatives =
+ group_->extension_flags().oes_standard_derivatives ? 1 : 0;
vertex_translator_.reset(new ShaderTranslator);
if (!vertex_translator_->Init(EShLangVertex, &resources)) {
DLOG(ERROR) << "Could not initialize vertex shader translator.";