diff options
Diffstat (limited to 'src/systems')
-rw-r--r-- | src/systems/grid.c | 2 | ||||
-rw-r--r-- | src/systems/terrain.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/systems/grid.c b/src/systems/grid.c index 8a6f4f6..6e62a21 100644 --- a/src/systems/grid.c +++ b/src/systems/grid.c @@ -79,6 +79,6 @@ void Grid_Execute(Grid_Storage* storage) { GPU_EncodeBindShaderData(enc, 0, Binding_Camera_GetLayout(&camera_data)); GPU_EncodeSetVertexBuffer(enc, storage->plane_vertices); GPU_EncodeSetIndexBuffer(enc, storage->plane_indices); - GPU_EncodeDrawIndexed(enc, 6); + GPU_EncodeDrawIndexedTris(enc, 6); GPU_CmdEncoder_EndRender(enc); } 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); } |