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

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: 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 e715ab7dbd9d8cb350e25257e39c490db115f3eb..6e4ec85c88cc52d5962b2510d38aeb418b1481a7 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -313,7 +313,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:
@@ -328,6 +328,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