pex-context icon indicating copy to clipboard operation
pex-context copied to clipboard

Don't call disableVertexAttribArray unless necessary

Open vorg opened this issue 6 years ago • 0 comments

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

vorg avatar Jan 03 '19 04:01 vorg