From 6370b601896983823f2813e817e9291b03bea76f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 31 Oct 2018 12:54:08 +0100 Subject: view/renderer/Renderer: we don't need a depth buffer --- src/view/renderer/Renderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/view/renderer/Renderer.ts b/src/view/renderer/Renderer.ts index a0ecf41..bf29797 100644 --- a/src/view/renderer/Renderer.ts +++ b/src/view/renderer/Renderer.ts @@ -64,7 +64,7 @@ export default class Renderer { const h = this.canvas.height; this.gl.viewport(0, 0, w, h); - this.gl.clear(this.gl.COLOR_BUFFER_BIT | this.gl.DEPTH_BUFFER_BIT); + this.gl.clear(this.gl.COLOR_BUFFER_BIT); mat4.identity(this.viewport); mat4.scale(this.viewport, this.viewport, [2 * 64 / w, -2 * 64 / h, 1.0]); -- cgit v1.2.3