mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Fix minimap textures overwrite (#14349)
This commit is contained in:
parent
4843890c56
commit
9ac6d330b4
2 changed files with 48 additions and 36 deletions
|
@ -79,6 +79,7 @@ struct MinimapData {
|
|||
video::IImage *minimap_mask_square = nullptr;
|
||||
video::ITexture *texture = nullptr;
|
||||
video::ITexture *heightmap_texture = nullptr;
|
||||
bool textures_initialised = false; // True if the following textures are not nullptrs.
|
||||
video::ITexture *minimap_overlay_round = nullptr;
|
||||
video::ITexture *minimap_overlay_square = nullptr;
|
||||
video::ITexture *player_marker = nullptr;
|
||||
|
@ -140,6 +141,7 @@ public:
|
|||
|
||||
MinimapModeDef getModeDef() const { return data->mode; }
|
||||
|
||||
video::IImage *getMinimapMask();
|
||||
video::ITexture *getMinimapTexture();
|
||||
|
||||
void blitMinimapPixelsToImageRadar(video::IImage *map_image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue