Fix number of indices

fixes #1437
This commit is contained in:
IntegratedQuantum 2025-05-12 20:28:03 +02:00
parent 4d62da9ae8
commit 3db8c22b5d

View File

@ -1120,7 +1120,7 @@ pub const MeshSelection = struct { // MARK: MeshSelection
c.glUniform1f(uniforms.lineSize, 1.0/128.0);
c.glBindVertexArray(main.renderer.chunk_meshing.vao);
c.glDrawElements(c.GL_TRIANGLES, 24*24, c.GL_UNSIGNED_INT, null);
c.glDrawElements(c.GL_TRIANGLES, 12*6*6, c.GL_UNSIGNED_INT, null);
}
pub fn render(projectionMatrix: Mat4f, viewMatrix: Mat4f, playerPos: Vec3d) void {