Mr.doob 10 лет назад
Родитель
Сommit
17658cdf74
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/renderers/webgl/WebGLState.js

+ 2 - 2
src/renderers/webgl/WebGLState.js

@@ -380,12 +380,12 @@ THREE.WebGLState = function ( gl, paramThreeToGL ) {
 
 		}
 
-		var boundTexture = currentBoundTextures[currentTextureSlot];
+		var boundTexture = currentBoundTextures[ currentTextureSlot ];
 
 		if ( boundTexture === undefined ) {
 
 			boundTexture = { type: undefined, texture: undefined };
-			currentBoundTextures[currentTextureSlot] = boundTexture;
+			currentBoundTextures[ currentTextureSlot ] = boundTexture;
 
 		}