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/skybox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/skybox.c') diff --git a/src/render/skybox.c b/src/render/skybox.c index b228c82..b4e1e42 100644 --- a/src/render/skybox.c +++ b/src/render/skybox.c @@ -154,7 +154,7 @@ void Skybox_Draw(Skybox* skybox, Camera camera) { GPU_EncodeSetVertexBuffer(enc, skybox->cube.vertex_buffer); GPU_EncodeSetIndexBuffer(enc, skybox->cube.index_buffer); - GPU_EncodeDraw(enc, 36); + GPU_EncodeDrawTris(enc, 36); GPU_CmdEncoder_EndRender(enc); glDepthFunc(GL_LESS); -- cgit v1.2.3-70-g09d2