提交 6160a0f6 编写于 作者: M Mr.doob

Updated builds.

上级 944d0d20
......@@ -17640,17 +17640,6 @@
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );
_gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha );
if ( texture.isDataTexture && texture.unpackAlignment !== 1 &&
exports.Math.isPowerOfTwo( texture.image.width ) === false &&
texture.format === RGBFormat &&
texture.type === UnsignedByteType ) {
console.warn( 'THREE.WebGLRenderer: Changed unpackAlignment to 1. See #9566.', texture );
texture.unpackAlignment = 1;
}
_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
var image = clampToMaxSize( texture.image, capabilities.maxTextureSize );
......@@ -22641,8 +22630,9 @@
this.magFilter = magFilter !== undefined ? magFilter : NearestFilter;
this.minFilter = minFilter !== undefined ? minFilter : NearestFilter;
this.flipY = false;
this.generateMipmaps = false;
this.flipY = false;
this.unpackAlignment = 1;
}
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册