提交 5099a1be 编写于 作者: M Mr.doob

CanvasRenderer: Handle data textures.

上级 f330186c
......@@ -819,14 +819,23 @@ THREE.CanvasRenderer = function ( parameters ) {
texture instanceof THREE.DataTexture ) {
return {
canvas: undefined,
version: texture.version
}
canvas: undefined,
version: texture.version
}
}
var image = texture.image;
if ( image.complete === false ) {
return {
canvas: undefined,
version: 0
}
}
var canvas = document.createElement( 'canvas' );
canvas.width = image.width;
canvas.height = image.height;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册