Skip to content

Commit 6160a0f

Browse files
committed
Updated builds.
1 parent 944d0d2 commit 6160a0f

File tree

2 files changed

+246
-257
lines changed

2 files changed

+246
-257
lines changed

build/three.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17640,17 +17640,6 @@
1764017640

1764117641
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );
1764217642
_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-
1765417643
_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
1765517644

1765617645
var image = clampToMaxSize( texture.image, capabilities.maxTextureSize );
@@ -22641,8 +22630,9 @@
2264122630
this.magFilter = magFilter !== undefined ? magFilter : NearestFilter;
2264222631
this.minFilter = minFilter !== undefined ? minFilter : NearestFilter;
2264322632

22644-
this.flipY = false;
2264522633
this.generateMipmaps = false;
22634+
this.flipY = false;
22635+
this.unpackAlignment = 1;
2264622636

2264722637
}
2264822638

0 commit comments

Comments
 (0)