| Index: gpu/command_buffer/service/context_state.cc
|
| diff --git a/gpu/command_buffer/service/context_state.cc b/gpu/command_buffer/service/context_state.cc
|
| index ec3ca144a7c78e59811b5ac78d15ecf7d694e416..a0e2c8cf574a09266bc93450749976ea0cebe31a 100644
|
| --- a/gpu/command_buffer/service/context_state.cc
|
| +++ b/gpu/command_buffer/service/context_state.cc
|
| @@ -73,6 +73,7 @@ void ContextState::RestoreState() const {
|
| // TODO: This if should not be needed. RestoreState is getting called
|
| // before GLES2Decoder::Initialize which is a bug.
|
| if (vertex_attrib_manager) {
|
| + // TODO(gman): Move this restoration to VertexAttribManager.
|
| for (size_t attrib = 0; attrib < vertex_attrib_manager->num_attribs();
|
| ++attrib) {
|
| const VertexAttribManager::VertexAttribInfo* info =
|
| @@ -97,6 +98,7 @@ void ContextState::RestoreState() const {
|
| glDisableVertexAttribArray(attrib);
|
| }
|
| }
|
| + glVertexAttrib4fv(attrib, attrib_values[attrib].v);
|
| }
|
| BufferManager::BufferInfo* element_array_buffer =
|
| vertex_attrib_manager->element_array_buffer();
|
|
|