浏览代码

Reset texture state

Jesse van den Kieboom 9 年之前
父节点
当前提交
de61a95cef
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/renderers/webgl/WebGLState.js

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

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