1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Try to reuse texture objects in TextureSource::rebuildTexture()

This commit is contained in:
sfan5 2025-04-20 11:20:11 +02:00
parent b841c23701
commit 9cb78f2dc5
2 changed files with 30 additions and 12 deletions

View file

@ -86,7 +86,11 @@ public:
*/
virtual void insertSourceImage(const std::string &name, video::IImage *img)=0;
/// @brief rebuilds all textures (in case-source images have changed)
/**
* Rebuilds all textures (in case-source images have changed)
* @note This won't invalidate old ITexture's, but you have to retrieve them
* again to see changes.
*/
virtual void rebuildImagesAndTextures()=0;
};