File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 451
451
initWebXRManager ( ) ;
452
452
}
453
453
}
454
+
455
+ // A workaround to make it work under Firefox Reality that does not implement isContextLost()
456
+ // Thanks Rufus31415
457
+ // https://github.com/Rufus31415/Simple-WebXR-Unity/blob/28331fc890e316e13401618a8e0da1e84bad7a39/Assets/SimpleWebXR.jspre#L6
458
+ if ( ! WebGLRenderingContext . prototype . isContextLost ) {
459
+ WebGLRenderingContext . prototype . isContextLost = function ( ) {
460
+ return false ;
461
+ }
462
+ }
454
463
455
464
init ( ) ;
456
465
} ) ( ) ;
Original file line number Diff line number Diff line change 451
451
initWebXRManager ( ) ;
452
452
}
453
453
}
454
+
455
+ // A workaround to make it work under Firefox Reality that does not implement isContextLost()
456
+ // Thanks Rufus31415
457
+ // https://github.com/Rufus31415/Simple-WebXR-Unity/blob/28331fc890e316e13401618a8e0da1e84bad7a39/Assets/SimpleWebXR.jspre#L6
458
+ if ( ! WebGLRenderingContext . prototype . isContextLost ) {
459
+ WebGLRenderingContext . prototype . isContextLost = function ( ) {
460
+ return false ;
461
+ }
462
+ }
454
463
455
464
init ( ) ;
456
465
} ) ( ) ;
Original file line number Diff line number Diff line change 451
451
initWebXRManager ( ) ;
452
452
}
453
453
}
454
+
455
+ // A workaround to make it work under Firefox Reality that does not implement isContextLost()
456
+ // Thanks Rufus31415
457
+ // https://github.com/Rufus31415/Simple-WebXR-Unity/blob/28331fc890e316e13401618a8e0da1e84bad7a39/Assets/SimpleWebXR.jspre#L6
458
+ if ( ! WebGLRenderingContext . prototype . isContextLost ) {
459
+ WebGLRenderingContext . prototype . isContextLost = function ( ) {
460
+ return false ;
461
+ }
462
+ }
454
463
455
464
init ( ) ;
456
465
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments