Skip to content

Commit a420d6e

Browse files
author
Avaer Kazmer
committed
Re-enable top level clear
1 parent 6679295 commit a420d6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ const _computeDerivedGamepadsData = () => {
453453
}
454454
};
455455
const _tickAnimationFrame = win => {
456-
// win.clear();
456+
win.clear();
457457
return win.runAsync({
458458
method: 'tickAnimationFrame',
459459
layered: true,

src/xr-scene.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ class XRScene extends HTMLElement {
9292
}
9393
return win.ctx;
9494
};
95-
/* win.clear = () => {
95+
win.clear = () => {
9696
if (win.ctx) {
9797
win.ctx.binding = null;
9898
win.ctx.clearColor(0, 0, 0, 1);
9999
win.ctx.clear(win.ctx.COLOR_BUFFER_BIT|win.ctx.STENCIL_BUFFER_BIT|win.ctx.DEPTH_BUFFER_BIT);
100100
}
101-
}; */
101+
};
102102
win.destroy = (destroy => function() {
103103
if (win.canvas) {
104104
this.shadow.removeChild(win.canvas);

0 commit comments

Comments
 (0)