File tree Expand file tree Collapse file tree 2 files changed +246
-257
lines changed Expand file tree Collapse file tree 2 files changed +246
-257
lines changed Original file line number Diff line number Diff line change 17640
17640
17641
17641
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );
17642
17642
_gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha );
17643
-
17644
- if ( texture.isDataTexture && texture.unpackAlignment !== 1 &&
17645
- exports.Math.isPowerOfTwo( texture.image.width ) === false &&
17646
- texture.format === RGBFormat &&
17647
- texture.type === UnsignedByteType ) {
17648
-
17649
- console.warn( 'THREE.WebGLRenderer: Changed unpackAlignment to 1. See #9566.', texture );
17650
- texture.unpackAlignment = 1;
17651
-
17652
- }
17653
-
17654
17643
_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
17655
17644
17656
17645
var image = clampToMaxSize( texture.image, capabilities.maxTextureSize );
22641
22630
this.magFilter = magFilter !== undefined ? magFilter : NearestFilter;
22642
22631
this.minFilter = minFilter !== undefined ? minFilter : NearestFilter;
22643
22632
22644
- this.flipY = false;
22645
22633
this.generateMipmaps = false;
22634
+ this.flipY = false;
22635
+ this.unpackAlignment = 1;
22646
22636
22647
22637
}
22648
22638
You can’t perform that action at this time.
0 commit comments