1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 09:55:22 +02:00

Fix minimap textures overwrite (#14349)

This commit is contained in:
cx384
2024-02-15 21:52:41 +01:00
committed by GitHub
parent 4843890c56
commit 9ac6d330b4
2 changed files with 48 additions and 36 deletions

View File

@@ -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);