commit | 398162b8bb4d1680215b703fbcb9819100817c7a | [log] [tgz] |
---|---|---|
author | Lingfeng Yang <lfy@google.com> | Thu May 26 14:18:33 2016 -0700 |
committer | Lingfeng Yang <lfy@google.com> | Thu May 26 17:19:13 2016 -0700 |
tree | 303bccd26116bef851b6012ef957db01bd191390 | |
parent | 9ae1469285adf4f366efc2480cca4cdebdc6ac82 [diff] |
Save a few glBindBuffer calls When sending vertex attributes, we only need to bind the context-wide GLClientState's VBO if a particular vertex attrib state is enabled. This CL makes it so we call glBindBuffer only if the currently bound vbo changes, in many cases completely eliminating extra glBindBuffer calls in sendVertexAttributes. Each extra glBindBuffer call takes a few microseconds. Change-Id: I04de3be0114ec6df10e67bc801b6d089bf5096db