diff options
author | paradust7 <102263465+paradust7@users.noreply.github.com> | 2022-04-28 09:52:19 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-14 18:33:42 +0200 |
commit | 677dc2c1558420a1d105a5f33b5c14a1d43503bb (patch) | |
tree | 82a19a4f7c8674a1d3451f851d2073fb95549bba /src/client/mapblock_mesh.cpp | |
parent | beea8deeb510dbdf51331915c1305898fd3eba4a (diff) | |
download | minetest-677dc2c1558420a1d105a5f33b5c14a1d43503bb.tar.gz minetest-677dc2c1558420a1d105a5f33b5c14a1d43503bb.tar.bz2 minetest-677dc2c1558420a1d105a5f33b5c14a1d43503bb.zip |
Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232)
Keep code and use version check instead, for backwards compatibility
Diffstat (limited to 'src/client/mapblock_mesh.cpp')
-rw-r--r-- | src/client/mapblock_mesh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index 249a56087..e077011cc 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -1198,12 +1198,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; |