mirror of
				https://github.com/Ryujinx/Ryujinx.git
				synced 2025-11-04 08:13:41 +00:00 
			
		
		
		
	Force dynamic state update after rasterizer discard disable (#7007)
This commit is contained in:
		
							parent
							
								
									a830eb666b
								
							
						
					
					
						commit
						1668ba913f
					
				@ -1020,6 +1020,13 @@ namespace Ryujinx.Graphics.Vulkan
 | 
			
		||||
        {
 | 
			
		||||
            _newState.RasterizerDiscardEnable = discard;
 | 
			
		||||
            SignalStateChange();
 | 
			
		||||
 | 
			
		||||
            if (!discard && Gd.Vendor == Vendor.Qualcomm)
 | 
			
		||||
            {
 | 
			
		||||
                // On Adreno, enabling rasterizer discard somehow corrupts the viewport state.
 | 
			
		||||
                // Force it to be updated on next use to work around this bug.
 | 
			
		||||
                DynamicState.ForceAllDirty();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void SetRenderTargetColorMasks(ReadOnlySpan<uint> componentMask)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user