From 7ec62c58e9560fc961ec3522490e40ad1d259c72 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 16:17:23 +1000 Subject: wip skybox. make geometry owned and copied onto Mesh --- src/new_render/shadows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/new_render/shadows.c') diff --git a/src/new_render/shadows.c b/src/new_render/shadows.c index 24bfb57..9a44e55 100644 --- a/src/new_render/shadows.c +++ b/src/new_render/shadows.c @@ -105,7 +105,7 @@ void Shadow_ShadowmapExecute(Shadow_Storage* storage, Mat4 light_space_transform GPU_EncodeBindShaderData(&shadow_encoder, 0, shader_data); GPU_EncodeSetVertexBuffer(&shadow_encoder, mesh->vertex_buffer); GPU_EncodeSetIndexBuffer(&shadow_encoder, mesh->index_buffer); - GPU_EncodeDrawIndexed(&shadow_encoder, mesh->geometry->indices->len); + GPU_EncodeDrawIndexed(&shadow_encoder, mesh->geometry.indices->len); } } -- cgit v1.2.3-70-g09d2