Skip to content

Commit 1d0f043

Browse files
committed
another test for ml1
1 parent 003ce28 commit 1d0f043

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Build/webxr_ml1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@
532532
var onSessionEnded = this.onEndSession.bind(this);
533533
session.addEventListener('end', onSessionEnded);
534534

535-
this.canvas.width = glLayer.framebufferWidth;
535+
this.canvas.width = glLayer.framebufferWidth * 2;
536536
this.canvas.height = glLayer.framebufferHeight;
537537

538538
session.addEventListener('select', this.onInputEvent);
@@ -561,10 +561,10 @@
561561

562562
let glLayer = session.renderState.baseLayer;
563563

564-
if (this.canvas.width != glLayer.framebufferWidth ||
564+
if (this.canvas.width != glLayer.framebufferWidth * 2 ||
565565
this.canvas.height != glLayer.framebufferHeight)
566566
{
567-
this.canvas.width = glLayer.framebufferWidth;
567+
this.canvas.width = glLayer.framebufferWidth * 2;
568568
this.canvas.height = glLayer.framebufferHeight;
569569
}
570570

@@ -629,13 +629,13 @@
629629
let leftRect = {
630630
x:0,
631631
y:0,
632-
w:1,
632+
w:0.5,
633633
h:1
634634
}
635635
let rightRect = {
636-
x:1,
636+
x:0.5,
637637
y:0,
638-
w:1,
638+
w:0.5,
639639
h:1
640640
}
641641
for (let view of pose.views) {

0 commit comments

Comments
 (0)