From 14e6edd6bfe94089d52b5c4b6899dea23923e9be Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 15 Jun 2023 19:38:01 -0700 Subject: Add TODO for const qualifier in Buffer. --- gfx/src/util/scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/src/util/scene.c b/gfx/src/util/scene.c index dc55d5a..a638fa5 100644 --- a/gfx/src/util/scene.c +++ b/gfx/src/util/scene.c @@ -957,7 +957,8 @@ static bool load_meshes( get_component_size(accessor->component_type); switch (component_size) { case 1: { - BufferViewIdx8* indices = &geometry_desc.indices8; + BufferViewIdx8* indices = &geometry_desc.indices8; + // TODO: discards const qualifier. indices->buffer = buffer; indices->offset_bytes = accessor->offset + view->offset; indices->size_bytes = view->size; -- cgit v1.2.3