mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-05 05:07:56 +03:00
What?
This commit is contained in:
+1
-1
@@ -441,7 +441,7 @@ bool obj_index_buffer::load(obj* obj) {
|
||||
for (int32_t i = 0; i < mesh_num; i++) {
|
||||
obj_mesh& mesh = obj->mesh_array[i];
|
||||
size_t num_index = 0;
|
||||
for (int32_t j = 0; j < mesh.num_submesh; i++)
|
||||
for (int32_t j = 0; j < mesh.num_submesh; j++)
|
||||
num_index += mesh.submesh_array[j].num_index;
|
||||
buffer_size += num_index * sizeof(uint16_t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user