summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-13 01:07:06 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-13 01:07:06 +0000
commitc7698b3b98b4a493e163bb307627b54822ca022f (patch)
tree0ec1fe7e6b42211950c1df294e3ad0177c003008 /gpu/command_buffer/common
parenta2dce39e9e18d6fd5b095c5266db3bbe6be985d1 (diff)
downloadchromium_src-c7698b3b98b4a493e163bb307627b54822ca022f.zip
chromium_src-c7698b3b98b4a493e163bb307627b54822ca022f.tar.gz
chromium_src-c7698b3b98b4a493e163bb307627b54822ca022f.tar.bz2
Fix GL_OES_standard_derivatives support.
Forgot to add an enum TEST=another opengl es 2.0 conformance test passes BUG=none Review URL: http://codereview.chromium.org/4867001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_utils.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 4ed42a2..b9806ab 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -291,6 +291,10 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
case GL_CURRENT_VERTEX_ATTRIB:
return 4;
+ // -- glHint with GL_OES_standard_derivatives
+ case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES:
+ return 1;
+
// bad enum
default:
return 0;