소스 검색

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;
 		compressedTextureFormats = null;
 
 
+		currentTextureSlot = undefined;
+		currentBoundTextures = {};
+
 		currentBlending = null;
 		currentBlending = null;
 
 
 		currentColorWrite = null;
 		currentColorWrite = null;