mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232)
Keep code and use version check instead, for backwards compatibility
This commit is contained in:
parent
7f4fc6f8a7
commit
7e18a1f1be
2 changed files with 7 additions and 0 deletions
|
@ -1390,12 +1390,14 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
|
|||
MapBlockMesh::~MapBlockMesh()
|
||||
{
|
||||
for (scene::IMesh *m : m_mesh) {
|
||||
#if IRRLICHT_VERSION_MT_REVISION < 5
|
||||
if (m_enable_vbo) {
|
||||
for (u32 i = 0; i < m->getMeshBufferCount(); i++) {
|
||||
scene::IMeshBuffer *buf = m->getMeshBuffer(i);
|
||||
RenderingEngine::get_video_driver()->removeHardwareBuffer(buf);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
m->drop();
|
||||
}
|
||||
delete m_minimap_mapblock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue