aboutsummaryrefslogtreecommitdiff
path: root/src/client/mapblock_mesh.cpp
diff options
context:
space:
mode:
authorparadust7 <102263465+paradust7@users.noreply.github.com>2022-04-28 09:52:19 -0700
committerGitHub <noreply@github.com>2022-04-28 18:52:19 +0200
commit7e18a1f1be2692bde078c1b77982da916c871497 (patch)
treecca798f0f5121bef9d36844c80e054509ff0925e /src/client/mapblock_mesh.cpp
parent7f4fc6f8a77cd0e454ce98ff92da8c8d6592afba (diff)
downloadminetest-7e18a1f1be2692bde078c1b77982da916c871497.tar.gz
minetest-7e18a1f1be2692bde078c1b77982da916c871497.tar.bz2
minetest-7e18a1f1be2692bde078c1b77982da916c871497.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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp
index 8c7d66186..2c5500fca 100644
--- a/src/client/mapblock_mesh.cpp
+++ b/src/client/mapblock_mesh.cpp
@@ -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;