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

WebXRManager: Fixed setCompatibleXRDevice() of null.

上级 f2024134
......@@ -74,8 +74,7 @@ function WebXRManager( renderer ) {
this.setDevice = function ( value ) {
if ( value !== undefined ) device = value;
gl.setCompatibleXRDevice( value );
if ( value instanceof XRDevice ) gl.setCompatibleXRDevice( value );
};
......
......@@ -6,3 +6,4 @@ var performance;
var createImageBitmap;
var WebGL2RenderingContext;
var XRWebGLLayer;
var XRDevice;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册