Index: gpu/command_buffer/client/gles2_implementation.cc |
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc |
index b4c2858ca3f04089e32e607f82de3a7245cc374b..38d53b1b9a92c7e88cf574b05f0b99cda4f5cc7e 100644 |
--- a/gpu/command_buffer/client/gles2_implementation.cc |
+++ b/gpu/command_buffer/client/gles2_implementation.cc |
@@ -1558,8 +1558,14 @@ void GLES2Implementation::VertexAttribIPointer( |
<< stride << ", " |
<< ptr << ")"); |
// Record the info on the client side. |
- if (!vertex_array_object_manager_->SetAttribPointer( |
- bound_array_buffer_id_, index, size, type, GL_FALSE, stride, ptr)) { |
+ if (!vertex_array_object_manager_->SetAttribPointer(bound_array_buffer_id_, |
+ index, |
+ size, |
+ type, |
+ GL_FALSE, |
+ stride, |
+ ptr, |
+ GL_TRUE)) { |
SetGLError(GL_INVALID_OPERATION, "glVertexAttribIPointer", |
"client side arrays are not allowed in vertex array objects."); |
return; |
@@ -1587,8 +1593,14 @@ void GLES2Implementation::VertexAttribPointer( |
<< stride << ", " |
<< ptr << ")"); |
// Record the info on the client side. |
- if (!vertex_array_object_manager_->SetAttribPointer( |
- bound_array_buffer_id_, index, size, type, normalized, stride, ptr)) { |
+ if (!vertex_array_object_manager_->SetAttribPointer(bound_array_buffer_id_, |
+ index, |
+ size, |
+ type, |
+ normalized, |
+ stride, |
+ ptr, |
+ GL_FALSE)) { |
SetGLError(GL_INVALID_OPERATION, "glVertexAttribPointer", |
"client side arrays are not allowed in vertex array objects."); |
return; |