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

Unified Diff: gpu/command_buffer/service/vertex_attrib_manager.cc

Issue 8515023: Allow deleted resources to be used (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/service/vertex_attrib_manager.cc
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.cc b/gpu/command_buffer/service/vertex_attrib_manager.cc
index 7ba709baf1b1dfefd3cca90e4bb51e4744b37849..9df444c5d243795770dbf460ad0c7938745997ff 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.cc
+++ b/gpu/command_buffer/service/vertex_attrib_manager.cc
@@ -88,6 +88,11 @@ bool VertexAttribManager::Enable(GLuint index, bool enable) {
return true;
}
+void VertexAttribManager::Unbind(BufferManager::BufferInfo* buffer) {
+ for (uint32 vv = 0; vv < max_vertex_attribs_; ++vv) {
+ vertex_attrib_infos_[vv].Unbind(buffer);
+ }
+}
} // namespace gles2
} // namespace gpu
« no previous file with comments | « gpu/command_buffer/service/vertex_attrib_manager.h ('k') | gpu/command_buffer/service/vertex_attrib_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698