2
0
Эх сурвалжийг харах

WebGLBackground: More robust getSession() code.

Mr.doob 6 жил өмнө
parent
commit
dba5c97b8b

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

@@ -30,7 +30,8 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
 		// Ignore background in AR
 		// TODO: Reconsider this.
 
-		var session = renderer.vr.getSession();
+		var vr = renderer.vr;
+		var session = vr.getSession && vr.getSession();
 
 		if ( session && session.environmentBlendMode === 'additive' ) {