Index: gpu/command_buffer/service/vertex_attrib_manager.h |
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.h b/gpu/command_buffer/service/vertex_attrib_manager.h |
index ef24696385f16681384b5be330b8adb028e397a0..9cbc18f58aba3ea1eddc2e35e9cf210f3ca387e5 100644 |
--- a/gpu/command_buffer/service/vertex_attrib_manager.h |
+++ b/gpu/command_buffer/service/vertex_attrib_manager.h |
@@ -111,6 +111,12 @@ class VertexAttribManager { |
offset_ = offset; |
} |
+ void Unbind(BufferManager::BufferInfo* buffer) { |
+ if (buffer_ == buffer) { |
+ buffer_ = NULL; |
+ } |
+ } |
+ |
// The index of this attrib. |
GLuint index_; |
@@ -195,6 +201,7 @@ class VertexAttribManager { |
} |
} |
+ void Unbind(BufferManager::BufferInfo* buffer); |
private: |
uint32 max_vertex_attribs_; |