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 59b022005092f9656a59245e8ad1719e878a0378..7927001c39175814576f7dbe82813130a858e04e 100644 |
--- a/gpu/command_buffer/service/context_state.cc |
+++ b/gpu/command_buffer/service/context_state.cc |
@@ -103,9 +103,8 @@ void ContextState::RestoreAttribute(GLuint attrib) const { |
const VertexAttrib* info = |
vertex_attrib_manager->GetVertexAttrib(attrib); |
const void* ptr = reinterpret_cast<const void*>(info->offset()); |
- Buffer* buffer_info = info->buffer(); |
- glBindBuffer( |
- GL_ARRAY_BUFFER, buffer_info ? buffer_info->service_id() : 0); |
+ Buffer* buffer = info->buffer(); |
+ glBindBuffer(GL_ARRAY_BUFFER, buffer ? buffer->service_id() : 0); |
glVertexAttribPointer( |
attrib, info->size(), info->type(), info->normalized(), |
info->gl_stride(), ptr); |