File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Packages/webxr/Runtime/Plugins/WebGL Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1015,7 +1015,7 @@ setTimeout(function () {
1015
1015
leftRect . w = ( viewport . width / glLayer . framebufferWidth ) * ( glLayer . framebufferWidth / this . canvas . width ) ;
1016
1016
leftRect . h = ( viewport . height / glLayer . framebufferHeight ) * ( glLayer . framebufferHeight / this . canvas . height ) ;
1017
1017
}
1018
- } else if ( view . eye === 'right' && viewport . width != 0 && viewport . height != 0 ) {
1018
+ } else if ( view . eye === 'right' && viewport . width != 0 && viewport . height != 0 && viewport . x != 0 ) { // Ugly hack for iOS Mozilla WebXR Viewer
1019
1019
eyeCount = 2 ;
1020
1020
if ( viewport ) {
1021
1021
rightRect . x = ( viewport . x / glLayer . framebufferWidth ) * ( glLayer . framebufferWidth / this . canvas . width ) ;
You can’t perform that action at this time.
0 commit comments