File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ GlobalContext.XRInputSourceEvent = XRInputSourceEvent;
545545
546546class XRRigidTransform {
547547 constructor ( position , orientation , scale ) {
548- if ( position && position . constructor && position . constructor . name === 'SharedArrayBuffer ') {
548+ if ( typeof position == 'object ') {
549549 const inverse = orientation instanceof XRRigidTransform ? orientation : null ;
550550
551551 this . initialize ( position , inverse ) ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ GlobalContext.windows = windows;
3838
3939const xrState = ( ( ) => {
4040 const _makeSab = size => {
41- const sab = new SharedArrayBuffer ( size ) ;
41+ const sab = new ArrayBuffer ( size ) ;
4242 let index = 0 ;
4343 return ( c , n ) => {
4444 const result = new c ( sab , index , n ) ;
You can’t perform that action at this time.
0 commit comments