mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Avoid unsafety with stack-allocated mesh buffer
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user