mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 08:59:03 -06:00 
			
		
		
		
	gl_rasterizer: Notify depth mask changes on clear
This commit is contained in:
		@@ -435,7 +435,7 @@ void RasterizerOpenGL::Clear() {
 | 
			
		||||
        ASSERT_MSG(regs.zeta_enable != 0, "Tried to clear Z but buffer is not enabled!");
 | 
			
		||||
        use_depth = true;
 | 
			
		||||
 | 
			
		||||
        // TODO: Signal state tracker about these changes
 | 
			
		||||
        state_tracker.NotifyDepthMask();
 | 
			
		||||
        glDepthMask(GL_TRUE);
 | 
			
		||||
    }
 | 
			
		||||
    if (regs.clear_buffers.S) {
 | 
			
		||||
 
 | 
			
		||||
@@ -149,6 +149,11 @@ public:
 | 
			
		||||
        flags[OpenGL::Dirty::CullTest] = true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void NotifyDepthMask() {
 | 
			
		||||
        auto& flags = system.GPU().Maxwell3D().dirty.flags;
 | 
			
		||||
        flags[OpenGL::Dirty::DepthMask] = true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void NotifyDepthTest() {
 | 
			
		||||
        auto& flags = system.GPU().Maxwell3D().dirty.flags;
 | 
			
		||||
        flags[OpenGL::Dirty::DepthTest] = true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user