diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
commit | 0c2f902238010903388b7d9a3af00979340eff2c (patch) | |
tree | b718d72d8761769ec4aefbfd74cbb2d695f89741 /src/systems/terrain.c | |
parent | 43d915b2ceb3f5e439c09c772e9ebc7542c1a2bb (diff) |
add debug draw bbox and add topology to draw calls
Diffstat (limited to 'src/systems/terrain.c')
-rw-r--r-- | src/systems/terrain.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |