summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 17:18:37 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 17:18:37 +0000
commit656dcaad7854f685618c39647cb1eda818a86d43 (patch)
tree078ed9a3a9c581a8ff2e2da2a79d6aefbb21d91f /gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
parent3651cf802999c8ae4532a23db254e7249f45c589 (diff)
downloadchromium_src-656dcaad7854f685618c39647cb1eda818a86d43.zip
chromium_src-656dcaad7854f685618c39647cb1eda818a86d43.tar.gz
chromium_src-656dcaad7854f685618c39647cb1eda818a86d43.tar.bz2
A few more changes for conformance tests.
TEST=none BUG=none Review URL: http://codereview.chromium.org/1985006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
index eed18cd..eb09130 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -273,6 +273,17 @@ bool ValidateGLenumGLState(GLenum value) {
}
}
+bool ValidateGLenumGetMaxIndexType(GLenum value) {
+ switch (value) {
+ case GL_UNSIGNED_BYTE:
+ case GL_UNSIGNED_SHORT:
+ case GL_UNSIGNED_INT:
+ return true;
+ default:
+ return false;
+ }
+}
+
bool ValidateGLenumHintMode(GLenum value) {
switch (value) {
case GL_FASTEST: