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/render/pbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/pbr.c') diff --git a/src/render/pbr.c b/src/render/pbr.c index 1a7b4de..fbdacac 100644 --- a/src/render/pbr.c +++ b/src/render/pbr.c @@ -120,7 +120,7 @@ void PBR_Execute(PBR_Storage* storage, Camera camera, TextureHandle shadowmap_te GPU_EncodeSetVertexBuffer(enc, mesh->vertex_buffer); GPU_EncodeSetIndexBuffer(enc, mesh->index_buffer); // draw - GPU_EncodeDrawIndexed(enc, mesh->geometry.index_count); + GPU_EncodeDrawIndexedTris(enc, mesh->geometry.index_count); } GPU_CmdEncoder_EndRender(enc); -- cgit v1.2.3-70-g09d2