|
2 | 2 | * @author mrdoob / http://mrdoob.com/
|
3 | 3 | */
|
4 | 4 |
|
5 |
| -import { LinearFilter, NearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, FloatType, HalfFloatType, UnsignedByteType, ClampToEdgeWrapping, NearestMipMapLinearFilter, NearestMipMapNearestFilter } from '../../constants'; |
| 5 | +import { LinearFilter, NearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, FloatType, HalfFloatType, ClampToEdgeWrapping, NearestMipMapLinearFilter, NearestMipMapNearestFilter } from '../../constants'; |
6 | 6 | import { _Math } from '../../math/Math';
|
7 | 7 |
|
8 | 8 | function WebGLTextures( _gl, extensions, state, properties, capabilities, paramThreeToGL, info ) {
|
@@ -410,17 +410,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, paramT
|
410 | 410 |
|
411 | 411 | _gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );
|
412 | 412 | _gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha );
|
413 |
| - |
414 |
| - if ( texture.isDataTexture && texture.unpackAlignment !== 1 && |
415 |
| - _Math.isPowerOfTwo( texture.image.width ) === false && |
416 |
| - texture.format === RGBFormat && |
417 |
| - texture.type === UnsignedByteType ) { |
418 |
| - |
419 |
| - console.warn( 'THREE.WebGLRenderer: Changed unpackAlignment to 1. See #9566.', texture ); |
420 |
| - texture.unpackAlignment = 1; |
421 |
| - |
422 |
| - } |
423 |
| - |
424 | 413 | _gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
|
425 | 414 |
|
426 | 415 | var image = clampToMaxSize( texture.image, capabilities.maxTextureSize );
|
|
0 commit comments