commit | 6c37acfbedb88b460d2997f8b2d7b0e04a8782df | [log] [tgz] |
---|---|---|
author | Fredrik Höglund <fredrik@kde.org> | Mon Mar 02 18:25:45 2015 +0100 |
committer | Fredrik Höglund <fredrik@kde.org> | Fri May 08 15:31:02 2015 +0200 |
tree | 26ea46a6f300968164e5d52f39da95860c668579 | |
parent | 2830c2fbeb9601c1760a9fffe45cd04f8c635d25 [diff] |
mesa: Keep track of the last looked-up VAO This saves the cost of repeated hash table lookups when the same vertex array object is referenced in a sequence of calls such as: glVertexArrayAttribFormat(vao, ...); glVertexArrayAttribBinding(vao, ...); glEnableVertexArrayAttrib(vao, ...); ... Note that VAO's are container objects that are not shared between contexts. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>