1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Clear exposure compensation state textures on creation (#13151)

This commit is contained in:
x2048
2023-01-23 00:18:48 +01:00
committed by GitHub
parent cf5add1472
commit 6f5703baf1
3 changed files with 22 additions and 9 deletions

View File

@@ -126,7 +126,7 @@ public:
* @param name unique name of the texture
* @param format color format
*/
void setTexture(u8 index, core::dimension2du size, const std::string& name, video::ECOLOR_FORMAT format);
void setTexture(u8 index, core::dimension2du size, const std::string& name, video::ECOLOR_FORMAT format, bool clear = false);
/**
* Configure relative-size texture for the specific index
@@ -136,7 +136,7 @@ public:
* @param name unique name of the texture
* @param format color format
*/
void setTexture(u8 index, v2f scale_factor, const std::string& name, video::ECOLOR_FORMAT format);
void setTexture(u8 index, v2f scale_factor, const std::string& name, video::ECOLOR_FORMAT format, bool clear = false);
virtual u8 getTextureCount() override { return m_textures.size(); }
virtual video::ITexture *getTexture(u8 index) override;
@@ -150,6 +150,7 @@ private:
bool valid { false };
bool fixed_size { false };
bool dirty { false };
bool clear { false };
v2f scale_factor;
core::dimension2du size;
std::string name;