提交 edd80401 编写于 作者: H Harold Iedema

Set animation context only if window is available

上级 e9a1146c
......@@ -1029,7 +1029,8 @@ function WebGLRenderer( parameters ) {
var animation = new WebGLAnimation();
animation.setAnimationLoop( onAnimationFrame );
animation.setContext( typeof window !== 'undefined' ? window : null );
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.
先完成此消息的编辑!
想要评论请 注册