mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix some minor code issues all over the place
This commit is contained in:
parent
289425f6bd
commit
74762470b2
19 changed files with 45 additions and 109 deletions
|
@ -1201,13 +1201,13 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
|
|||
MapBlockMesh::~MapBlockMesh()
|
||||
{
|
||||
for (scene::IMesh *m : m_mesh) {
|
||||
if (m_enable_vbo && m)
|
||||
if (m_enable_vbo) {
|
||||
for (u32 i = 0; i < m->getMeshBufferCount(); i++) {
|
||||
scene::IMeshBuffer *buf = m->getMeshBuffer(i);
|
||||
RenderingEngine::get_video_driver()->removeHardwareBuffer(buf);
|
||||
}
|
||||
}
|
||||
m->drop();
|
||||
m = NULL;
|
||||
}
|
||||
delete m_minimap_mapblock;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue