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:
parent
b841c23701
commit
9cb78f2dc5
2 changed files with 30 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue