We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a1146 commit edd8040Copy full SHA for edd8040
src/renderers/WebGLRenderer.js
@@ -1029,7 +1029,8 @@ function WebGLRenderer( parameters ) {
1029
1030
var animation = new WebGLAnimation();
1031
animation.setAnimationLoop( onAnimationFrame );
1032
- animation.setContext( typeof window !== 'undefined' ? window : null );
+
1033
+ if ( typeof window !== 'undefined' ) animation.setContext( window );
1034
1035
this.setAnimationLoop = function ( callback ) {
1036
0 commit comments