Просмотр исходного кода

WebVR: Revert exclusive/immersive change.

Mr.doob 7 лет назад
Родитель
Сommit
9d663e9baa
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      examples/js/vr/WebVR.js

+ 2 - 2
examples/js/vr/WebVR.js

@@ -78,7 +78,7 @@ var WEBVR = {
 
 				if ( currentSession === null ) {
 
-					device.requestSession( { immersive: true } ).then( onSessionStarted );
+					device.requestSession( { exclusive: true } ).then( onSessionStarted );
 
 				} else {
 
@@ -137,7 +137,7 @@ var WEBVR = {
 
 			navigator.xr.requestDevice().then( function ( device ) {
 
-				device.supportsSession( { immersive: true } ).then( function () {
+				device.supportsSession( { exclusive: true } ).then( function () {
 
 					showEnterXR( device );