summaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
authorparadust7 <102263465+paradust7@users.noreply.github.com>2022-04-28 09:52:19 -0700
committersfan5 <sfan5@live.de>2022-05-14 18:33:42 +0200
commit677dc2c1558420a1d105a5f33b5c14a1d43503bb (patch)
tree82a19a4f7c8674a1d3451f851d2073fb95549bba /src/client/game.cpp
parentbeea8deeb510dbdf51331915c1305898fd3eba4a (diff)
downloadminetest-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/game.cpp')
-rw-r--r--src/client/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 4337d308e..9bbe36adf 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -907,7 +907,10 @@ private:
bool m_does_lost_focus_pause_game = false;
+#if IRRLICHT_VERSION_MT_REVISION < 5
int m_reset_HW_buffer_counter = 0;
+#endif
+
#ifdef HAVE_TOUCHSCREENGUI
bool m_cache_hold_aux1;
#endif
@@ -3988,6 +3991,7 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
/*
==================== End scene ====================
*/
+#if IRRLICHT_VERSION_MT_REVISION < 5
if (++m_reset_HW_buffer_counter > 500) {
/*
Periodically remove all mesh HW buffers.
@@ -4009,6 +4013,7 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
driver->removeAllHardwareBuffers();
m_reset_HW_buffer_counter = 0;
}
+#endif
driver->endScene();