Forráskód Böngészése

WebVR: Revert exclusive/immersive change.

Mr.doob 7 éve
szülő
commit
9d663e9baa
1 módosított fájl, 2 hozzáadás és 2 törlés
  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 );