提交 53ad9c89 编写于 作者: M Mr.doob

WebGLRenderer: warn when texture.image is undefined.

上级 df09504c
......@@ -3478,6 +3478,13 @@ THREE.WebGLRenderer = function ( parameters ) {
var image = texture.image;
if ( image === undefined ) {
THREE.warn( 'THREE.WebGLRenderer: Texture marked for update but image is undefined', texture );
return;
}
if ( image.complete === false ) {
THREE.warn( 'THREE.WebGLRenderer: Texture marked for update but image is incomplete', texture );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册