summaryrefslogtreecommitdiff
path: root/src/new_render/shadows.c
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-18 16:17:23 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-18 16:17:23 +1000
commit7ec62c58e9560fc961ec3522490e40ad1d259c72 (patch)
treee7d6c9bb9efc9871fe2a4bc7e5f51a02f7d901ef /src/new_render/shadows.c
parentc43bee3ec89e0863b4195ca9298a007d3526a6d9 (diff)
wip skybox. make geometry owned and copied onto Mesh
Diffstat (limited to 'src/new_render/shadows.c')
-rw-r--r--src/new_render/shadows.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}