Fix flamechart bleeding (#151)

Fixes #150
This commit is contained in:
Jamie Wong
2018-08-23 09:59:16 -07:00
committed by GitHub
parent da2de64d97
commit 6116371ffb
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -337,6 +337,8 @@ export class FlamechartRenderer {
)
renderInto(this.gl, renderTarget, () => {
this.gl.clear(new Graphics.Color(0, 0, 0, 0))
const viewportRect = new Rect(
Vec2.zero,
new Vec2(this.gl.viewport.width, this.gl.viewport.height),