Browse Source

WebGLBackground: More robust scene handling.

Mr.doob 5 years ago
parent
commit
b97af33123
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLBackground.js

+ 1 - 1
src/renderers/webgl/WebGLBackground.js

@@ -25,7 +25,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
 
 	function render( renderList, scene, camera, forceClear ) {
 
-		let background = scene.background;
+		let background = scene.isScene === true ? scene.background : null;
 
 		// Ignore background in AR
 		// TODO: Reconsider this.