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 @@ -546,7 +546,7 @@ GlobalContext.XRInputSourceEvent = XRInputSourceEvent;
546546
547547class XRRigidTransform {
548548 constructor ( position , orientation , scale ) {
549- if ( position && position . constructor && position . constructor . name === 'SharedArrayBuffer ') {
549+ if ( typeof position == 'object ') {
550550 const inverse = orientation instanceof XRRigidTransform ? orientation : null ;
551551
552552 this . initialize ( position , inverse ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ GlobalContext.windows = windows;
3939
4040const xrState = ( ( ) => {
4141 const _makeSab = size => {
42- const sab = new SharedArrayBuffer ( size ) ;
42+ const sab = new ArrayBuffer ( size ) ;
4343 let index = 0 ;
4444 return ( c , n ) => {
4545 const result = new c ( sab , index , n ) ;
You can’t perform that action at this time.
0 commit comments