From 0c2f902238010903388b7d9a3af00979340eff2c Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:18:24 +1000 Subject: add debug draw bbox and add topology to draw calls --- src/systems/terrain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/systems/terrain.c') diff --git a/src/systems/terrain.c b/src/systems/terrain.c index ead7700..069000e 100644 --- a/src/systems/terrain.c +++ b/src/systems/terrain.c @@ -174,7 +174,7 @@ void Terrain_Draw(Terrain_Storage* storage) { GPU_EncodeSetVertexBuffer(enc, storage->vertex_buffer); GPU_EncodeSetIndexBuffer(enc, storage->index_buffer); - GPU_EncodeDrawIndexed(enc, storage->indices_count); + GPU_EncodeDrawIndexedTris(enc, storage->indices_count); // glDrawArrays(GL_POINTS, 0, storage->num_vertices); } -- cgit v1.2.3-70-g09d2