Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 1136713003: Add ES3 commands GetVertexAttribI{u}iv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_utils.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 257758fec021a89e1ff17ca353a0eac775be5f3d..d58156f37e6cfd3469f4dc29f231f00ce4c160cd 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -329,7 +329,7 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
case GL_TEXTURE_MAX_ANISOTROPY_EXT:
return 1;
- // -- glGetVertexAttribfv, glGetVertexAttribiv
+ // -- glGetVertexAttrib
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:
return 1;
case GL_VERTEX_ATTRIB_ARRAY_ENABLED:
@@ -344,6 +344,10 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
return 1;
case GL_CURRENT_VERTEX_ATTRIB:
return 4;
+ case GL_VERTEX_ATTRIB_ARRAY_INTEGER:
+ return 1;
+ case GL_VERTEX_ATTRIB_ARRAY_DIVISOR:
+ return 1;
// -- glGetSynciv
case GL_OBJECT_TYPE:

Powered by Google App Engine
This is Rietveld 408576698