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
1 file changed
tree: 303bccd26116bef851b6012ef957db01bd191390
  1. host/
  2. shared/
  3. system/
  4. tests/
  5. Android.mk
  6. common.mk
  7. README