pex-context
pex-context copied to clipboard
Don't call disableVertexAttribArray unless necessary
In https://github.com/pex-gl/pex-context/blob/master/index.js#L695 we do
for (let i = 0; i < 16; i++) {
state.activeAttributes[i] = null
gl.disableVertexAttribArray(i)
}
while https://kripken.github.io/emscripten-site/docs/optimizing/Optimizing-WebGL.html#avoid-redundant-calls explicitly says to avoid it