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

Merge pull request #14249 from haroldiedema/worker-fix

Don't use 'window' if it isn't available
......@@ -1029,7 +1029,8 @@ function WebGLRenderer( parameters ) {
var animation = new WebGLAnimation();
animation.setAnimationLoop( onAnimationFrame );
animation.setContext( window );
if ( typeof window !== 'undefined' ) animation.setContext( window );
this.setAnimationLoop = function ( callback ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册