Reset all textures on rebind, which is what Externs need when finishing

This commit is contained in:
Richard Davey 2020-08-06 17:06:26 +01:00
parent e77639561b
commit 75da5b2f22

View file

@ -1216,8 +1216,10 @@ var WebGLRenderer = new Class({
this.setBlendMode(0, true);
gl.activeTexture(gl.TEXTURE1);
gl.bindTexture(gl.TEXTURE_2D, this.blankTexture.glTexture);
this.resetTextures(true);
// gl.activeTexture(gl.TEXTURE1);
// gl.bindTexture(gl.TEXTURE_2D, this.blankTexture.glTexture);
this.currentActiveTexture = 1;
this.startActiveTexture++;