提交 10bc91ed 编写于 作者: D dmarcos

Consider the case when vrdisplaypresentchange fires but device is null.

上级 a3e8db4c
......@@ -43,7 +43,7 @@ function WebVRManager( renderer ) {
function onVRDisplayPresentChange() {
if ( device.isPresenting ) {
if ( device !== null && device.isPresenting ) {
var eyeParameters = device.getEyeParameters( 'left' );
var renderWidth = eyeParameters.renderWidth;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册