Browse Source

Merge branch 'reset-texture-state' of https://github.com/jkieboom/three.js into dev

Mr.doob 9 years ago
parent
commit
ffda0b91c2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/renderers/webgl/WebGLState.js

+ 3 - 0
src/renderers/webgl/WebGLState.js

@@ -707,6 +707,9 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
 
 		compressedTextureFormats = null;
 
+		currentTextureSlot = undefined;
+		currentBoundTextures = {};
+
 		currentBlending = null;
 
 		currentColorWrite = null;