From 1d042a977d6421b5b57f2dbaa458e52c0de6c94d Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 29 Aug 2024 16:01:29 +0200 Subject: [PATCH] Avoid unsafety with stack-allocated mesh buffer --- src/client/hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/hud.cpp b/src/client/hud.cpp index c971d9558..73f3bee02 100644 --- a/src/client/hud.cpp +++ b/src/client/hud.cpp @@ -139,7 +139,7 @@ Hud::Hud(Client *client, LocalPlayer *player, m_rotation_mesh_buffer.getMaterial().Lighting = false; m_rotation_mesh_buffer.getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; - m_rotation_mesh_buffer.setHardwareMappingHint(scene::EHM_STATIC); + //m_rotation_mesh_buffer.setHardwareMappingHint(scene::EHM_STATIC); // FIXME: incorrectly stack allocated, not safe! } void Hud::readScalingSetting()