mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Reset override material in anaglyph
Reset override material properties before applying the color filter.
This commit is contained in:
		@@ -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 |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user