Skip to content

Commit 6679295

Browse files
author
Avaer Kazmer
committed
Clean up top level window clear binding
1 parent 39a6fdb commit 6679295

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xr-scene.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ class XRScene extends HTMLElement {
9494
};
9595
/* win.clear = () => {
9696
if (win.ctx) {
97+
win.ctx.binding = null;
98+
win.ctx.clearColor(0, 0, 0, 1);
9799
win.ctx.clear(win.ctx.COLOR_BUFFER_BIT|win.ctx.STENCIL_BUFFER_BIT|win.ctx.DEPTH_BUFFER_BIT);
98100
}
99101
}; */

0 commit comments

Comments
 (0)