mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
c8d3d11339
commit
ae9b5e0098
31 changed files with 428 additions and 523 deletions
|
@ -274,8 +274,8 @@ struct MeshBufListList
|
|||
|
||||
void clear()
|
||||
{
|
||||
for (int l = 0; l < MAX_TILE_LAYERS; l++)
|
||||
lists[l].clear();
|
||||
for (auto &list : lists)
|
||||
list.clear();
|
||||
}
|
||||
|
||||
void add(scene::IMeshBuffer *buf, u8 layer)
|
||||
|
@ -441,9 +441,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
|
|||
}
|
||||
|
||||
// Render all layers in order
|
||||
for (int layer = 0; layer < MAX_TILE_LAYERS; layer++) {
|
||||
std::vector<MeshBufList> &lists = drawbufs.lists[layer];
|
||||
|
||||
for (auto &lists : drawbufs.lists) {
|
||||
int timecheck_counter = 0;
|
||||
for (MeshBufList &list : lists) {
|
||||
timecheck_counter++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue