Reset override material in anaglyph

Reset override material properties before applying the color filter.
This commit is contained in:
Dmitry Kostenko 2022-01-15 20:52:20 +01:00 committed by x2048
parent 7c93b2d7a3
commit b6555ee6af

@ -30,6 +30,7 @@ void RenderingCoreAnaglyph::drawAll()
void RenderingCoreAnaglyph::setupMaterial(int color_mask) void RenderingCoreAnaglyph::setupMaterial(int color_mask)
{ {
video::SOverrideMaterial &mat = driver->getOverrideMaterial(); video::SOverrideMaterial &mat = driver->getOverrideMaterial();
mat.reset();
mat.Material.ColorMask = color_mask; mat.Material.ColorMask = color_mask;
mat.EnableFlags = video::EMF_COLOR_MASK; mat.EnableFlags = video::EMF_COLOR_MASK;
mat.EnablePasses = scene::ESNRP_SKY_BOX | scene::ESNRP_SOLID | mat.EnablePasses = scene::ESNRP_SKY_BOX | scene::ESNRP_SOLID |