diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-31 12:54:08 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-31 12:54:08 +0100 |
commit | 6370b601896983823f2813e817e9291b03bea76f (patch) | |
tree | a9e0672718c20d52b17e567919b831004d6e1527 | |
parent | 1712352d1c72628a045300fe922c82cd3214070a (diff) | |
download | rpgedit-6370b601896983823f2813e817e9291b03bea76f.tar rpgedit-6370b601896983823f2813e817e9291b03bea76f.zip |
view/renderer/Renderer: we don't need a depth buffer
-rw-r--r-- | src/view/renderer/Renderer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |