提交 dba5c97b 编写于 作者: M Mr.doob

WebGLBackground: More robust getSession() code.

上级 caa10a3a
......@@ -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' ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册