|
|
@@ -245,8 +245,6 @@ class WebGLTextureUtils {
|
|
|
|
|
|
const { gl, extensions, backend } = this;
|
|
|
|
|
|
- const { currentAnisotropy } = backend.get( texture );
|
|
|
-
|
|
|
gl.texParameteri( textureType, gl.TEXTURE_WRAP_S, wrappingToGL[ texture.wrapS ] );
|
|
|
gl.texParameteri( textureType, gl.TEXTURE_WRAP_T, wrappingToGL[ texture.wrapT ] );
|
|
|
|
|
|
@@ -279,11 +277,10 @@ class WebGLTextureUtils {
|
|
|
if ( texture.minFilter !== NearestMipmapLinearFilter && texture.minFilter !== LinearMipmapLinearFilter ) return;
|
|
|
if ( texture.type === FloatType && extensions.has( 'OES_texture_float_linear' ) === false ) return; // verify extension for WebGL 1 and WebGL 2
|
|
|
|
|
|
- if ( texture.anisotropy > 1 || currentAnisotropy !== texture.anisotropy ) {
|
|
|
+ if ( texture.anisotropy > 1 ) {
|
|
|
|
|
|
const extension = extensions.get( 'EXT_texture_filter_anisotropic' );
|
|
|
gl.texParameterf( textureType, extension.TEXTURE_MAX_ANISOTROPY_EXT, Math.min( texture.anisotropy, backend.getMaxAnisotropy() ) );
|
|
|
- backend.get( texture ).currentAnisotropy = texture.anisotropy;
|
|
|
|
|
|
}
|
|
|
|