summaryrefslogtreecommitdiff
path: root/src/render/pbr.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 13:18:24 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 13:18:24 +1000
commit0c2f902238010903388b7d9a3af00979340eff2c (patch)
treeb718d72d8761769ec4aefbfd74cbb2d695f89741 /src/render/pbr.c
parent43d915b2ceb3f5e439c09c772e9ebc7542c1a2bb (diff)
add debug draw bbox and add topology to draw calls
Diffstat (limited to 'src/render/pbr.c')
-rw-r--r--src/render/pbr.c2
1 files changed, 1 insertions, 1 deletions
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);