Instancing
Created by: VLanvin
Added support for instanced rendering as well as multiple vertex buffers per vertex array. Contains important and breaking changes to the interface of vertex arrays.
Seems to work properly on Linux, but not everything has been tested thoroughly, and instancing is still to be tested on MacOS.
Smaller changes:
- Added finalisation and reuse of internal IDs
- Fixed a rare case where a vertex array could be unbound before drawing (due to GC + state persistence)
- Fixed unsound state changes in IndexArray.rebuild