diff options
-rw-r--r-- | gfx/src/util/scene.c | 3 |
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; |