mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Reset override material in anaglyph
Reset override material properties before applying the color filter.
This commit is contained in:
parent
7c93b2d7a3
commit
b6555ee6af
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user