summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-06-15 19:38:01 -0700
committer3gg <3gg@shellblade.net>2023-06-15 19:38:01 -0700
commit14e6edd6bfe94089d52b5c4b6899dea23923e9be (patch)
tree3c77eee1abfba9197fe9198fb1ff7f85404c71db
parentc752222a285432bdd46e7b0096eb1fad6bd4eba0 (diff)
Add TODO for const qualifier in Buffer.
-rw-r--r--gfx/src/util/scene.c3
1 files changed, 2 insertions, 1 deletions
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(
957 get_component_size(accessor->component_type); 957 get_component_size(accessor->component_type);
958 switch (component_size) { 958 switch (component_size) {
959 case 1: { 959 case 1: {
960 BufferViewIdx8* indices = &geometry_desc.indices8; 960 BufferViewIdx8* indices = &geometry_desc.indices8;
961 // TODO: discards const qualifier.
961 indices->buffer = buffer; 962 indices->buffer = buffer;
962 indices->offset_bytes = accessor->offset + view->offset; 963 indices->offset_bytes = accessor->offset + view->offset;
963 indices->size_bytes = view->size; 964 indices->size_bytes = view->size;