diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index 4c2da6447ba739..db3f5d0298cd77 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/src/renderers/webgl/WebGLTextures.js @@ -1178,7 +1178,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, } - state.bindTexture( _gl.TEXTURE_CUBE_MAP, null ); + state.unbindTexture(); } else if ( isMultipleRenderTargets ) { @@ -1201,7 +1201,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, } - state.bindTexture( _gl.TEXTURE_2D, null ); + state.unbindTexture(); } else { @@ -1234,7 +1234,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, } - state.bindTexture( glTextureType, null ); + state.unbindTexture(); } @@ -1265,7 +1265,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, state.bindTexture( target, webglTexture ); generateMipmap( target, texture, renderTarget.width, renderTarget.height ); - state.bindTexture( target, null ); + state.unbindTexture(); }