Skip to content

Commit

Permalink
WebGLTextures: Unbind textures with dedicated method. (#22394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Aug 23, 2021
1 parent 98a7a73 commit 57b7a9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderers/webgl/WebGLTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,

}

state.bindTexture( _gl.TEXTURE_CUBE_MAP, null );
state.unbindTexture();

} else if ( isMultipleRenderTargets ) {

Expand All @@ -1201,7 +1201,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,

}

state.bindTexture( _gl.TEXTURE_2D, null );
state.unbindTexture();

} else {

Expand Down Expand Up @@ -1234,7 +1234,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,

}

state.bindTexture( glTextureType, null );
state.unbindTexture();

}

Expand Down Expand Up @@ -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();

}

Expand Down

0 comments on commit 57b7a9b

Please sign in to comment.