From 427dc339f92a3ef7bbacf57c99a6afd72d25d83f Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 4 May 2016 21:30:38 -0400 Subject: [PATCH] WebGLState: currentTextureSlot to null. --- src/renderers/webgl/WebGLState.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderers/webgl/WebGLState.js b/src/renderers/webgl/WebGLState.js index 0df4decb19..84b28dd8ae 100644 --- a/src/renderers/webgl/WebGLState.js +++ b/src/renderers/webgl/WebGLState.js @@ -51,7 +51,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) { var maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS ); - var currentTextureSlot = undefined; + var currentTextureSlot = null; var currentBoundTextures = {}; var currentClearColor = new THREE.Vector4(); @@ -605,7 +605,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) { this.bindTexture = function ( webglType, webglTexture ) { - if ( currentTextureSlot === undefined ) { + if ( currentTextureSlot === null ) { _this.activeTexture(); @@ -739,7 +739,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) { compressedTextureFormats = null; - currentTextureSlot = undefined; + currentTextureSlot = null; currentBoundTextures = {}; currentBlending = null; -- GitLab