mirror of
https://github.com/minetest/minetest.git
synced 2024-11-20 06:33:45 +01:00
Avoid unsafety with stack-allocated mesh buffer
This commit is contained in:
parent
6105804f00
commit
538b8b9b34
@ -154,7 +154,7 @@ Hud::Hud(Client *client, LocalPlayer *player,
|
||||
|
||||
b.getMaterial().Lighting = false;
|
||||
b.getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
|
||||
b.setHardwareMappingHint(scene::EHM_STATIC);
|
||||
//b.setHardwareMappingHint(scene::EHM_STATIC); // FIXME: incorrectly stack allocated, not safe!
|
||||
}
|
||||
|
||||
void Hud::readScalingSetting()
|
||||
|
Loading…
Reference in New Issue
Block a user