pex-gl / pex-context

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
http://pex-gl.github.io/pex-context/
MIT License
160 stars 12 forks source link

Command with instances and count tries to draw using elements instead of array #49

Closed dmnsgn closed 6 years ago

dmnsgn commented 6 years ago

https://github.com/pex-gl/pex-context/blob/master/index.js#L772

drawElementsInstanced present instead of drawArraysInstanced