未验证 提交 d40d310a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13586 from Mugen87/dev11

WebGLTextures: Make .clampToMaxSize() more robust
......@@ -17,6 +17,13 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
if ( image.width > maxSize || image.height > maxSize ) {
if ( 'data' in image ) {
console.warn( 'THREE.WebGLRenderer: image in DataTexture is too big (' + image.width + 'x' + image.height + ').' );
return;
}
// Warning: Scaling through the canvas will only work with images that use
// premultiplied alpha.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册