aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/anaglyph.cpp
diff options
context:
space:
mode:
authorDmitry Kostenko <codeforsmile@gmail.com>2022-01-15 20:52:20 +0100
committerx2048 <codeforsmile@gmail.com>2022-01-16 13:10:33 +0100
commitb6555ee6aff8cd062034a08f1dbfca9c294cb0c6 (patch)
treea9737dc29dab974662e0f4e420933ed4834917e8 /src/client/render/anaglyph.cpp
parent7c93b2d7a3b681bcb10450229140858c4ba54c3c (diff)
downloadminetest-b6555ee6aff8cd062034a08f1dbfca9c294cb0c6.tar.gz
minetest-b6555ee6aff8cd062034a08f1dbfca9c294cb0c6.tar.bz2
minetest-b6555ee6aff8cd062034a08f1dbfca9c294cb0c6.zip
Reset override material in anaglyph
Reset override material properties before applying the color filter.
Diffstat (limited to 'src/client/render/anaglyph.cpp')
-rw-r--r--src/client/render/anaglyph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/render/anaglyph.cpp b/src/client/render/anaglyph.cpp
index 153e77400..2571f7333 100644
--- a/src/client/render/anaglyph.cpp
+++ b/src/client/render/anaglyph.cpp
@@ -30,6 +30,7 @@ void RenderingCoreAnaglyph::drawAll()
void RenderingCoreAnaglyph::setupMaterial(int color_mask)
{
video::SOverrideMaterial &mat = driver->getOverrideMaterial();
+ mat.reset();
mat.Material.ColorMask = color_mask;
mat.EnableFlags = video::EMF_COLOR_MASK;
mat.EnablePasses = scene::ESNRP_SKY_BOX | scene::ESNRP_SOLID |