浏览代码

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

Mr.doob 9 年之前
父节点
当前提交
ffda0b91c2
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;