view/renderer/Renderer: we don't need a depth buffer

This commit is contained in:
Matthias Schiffer 2018-10-31 12:54:08 +01:00
parent 1712352d1c
commit 6370b60189
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -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]);