| 1346 | /////////////////////////////////////////// |
| 1347 | |
| 1348 | void render_list_prep(render_list_t list_id) { |
| 1349 | _render_list_t *list = &local.lists[list_id]; |
| 1350 | if (list->prepped) return; |
| 1351 | |
| 1352 | // Sort the render queue |
| 1353 | radix_sort7(&list->queue[0], list->queue.count); |
| 1354 | |
| 1355 | // Make sure the material buffers are all up-to-date |
| 1356 | material_t curr = nullptr; |
| 1357 | for (int32_t i = 0; i < list->queue.count; i++) { |
| 1358 | if (curr == list->queue[i].material) continue; |
| 1359 | curr = list->queue[i].material; |
| 1360 | material_check_dirty(curr); |
| 1361 | } |
| 1362 | |
| 1363 | list->prepped = true; |
| 1364 | } |
| 1365 | |
| 1366 | /////////////////////////////////////////// |
| 1367 |
no test coverage detected