This seems to be causing issues with gl-audio-analyser
stackgl/gl-audio-analyser#1
Because the bind() calls in setPixels is not necessarily going to be the same active unit as the user requests with tex.bind(n), it seems like it is causing some issues. I didn't realize this but according to the spec, the two seem tied somehow:
glTexImage2D specifies a two-dimensional or cube-map texture for the current texture unit, specified with glActiveTexture.
This seems to be causing issues with
gl-audio-analyserstackgl/gl-audio-analyser#1
Because the
bind()calls insetPixelsis not necessarily going to be the same active unit as the user requests withtex.bind(n), it seems like it is causing some issues. I didn't realize this but according to the spec, the two seem tied somehow: