From b6555ee6aff8cd062034a08f1dbfca9c294cb0c6 Mon Sep 17 00:00:00 2001 From: Dmitry Kostenko Date: Sat, 15 Jan 2022 20:52:20 +0100 Subject: Reset override material in anaglyph Reset override material properties before applying the color filter. --- src/client/render/anaglyph.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/render/anaglyph.cpp') 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 | -- cgit v1.2.3