aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/pipeline.h
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2023-01-23 00:18:48 +0100
committerGitHub <noreply@github.com>2023-01-23 00:18:48 +0100
commit6f5703baf1737ca1d7dd70982e878fd83d288cdd (patch)
tree04fee7199605b55dac6b265525127fd1b4e73d9f /src/client/render/pipeline.h
parentcf5add14728f6f00eec0cc8221050ba91e6a9646 (diff)
downloadminetest-6f5703baf1737ca1d7dd70982e878fd83d288cdd.tar.xz
Clear exposure compensation state textures on creation (#13151)
Diffstat (limited to 'src/client/render/pipeline.h')
-rw-r--r--src/client/render/pipeline.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/render/pipeline.h b/src/client/render/pipeline.h
index bfdef2931..f446773ba 100644
--- a/src/client/render/pipeline.h
+++ b/src/client/render/pipeline.h
@@ -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;