mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-11-04 15:05:07 +00:00 
			
		
		
		
	Fix bug in Rewrite that didn't detect missing CountAttributes
This commit is contained in:
		
							parent
							
								
									781cdd5a3b
								
							
						
					
					
						commit
						4cdaea4747
					
				| 
						 | 
				
			
			@ -863,9 +863,10 @@ namespace OpenTK.Rewrite
 | 
			
		|||
            var attribute = parameter.CustomAttributes
 | 
			
		||||
                        .FirstOrDefault(a => a.AttributeType.Name == "CountAttribute");
 | 
			
		||||
 | 
			
		||||
            var count = new CountAttribute();
 | 
			
		||||
            CountAttribute count = null;
 | 
			
		||||
            if (attribute != null)
 | 
			
		||||
            {
 | 
			
		||||
                count = new CountAttribute();
 | 
			
		||||
                count.Count = (int)(GetAttributeField(attribute, "Count") ?? 0);
 | 
			
		||||
                count.Parameter = (string)(GetAttributeField(attribute, "Parameter"));
 | 
			
		||||
                count.Computed = (string)(GetAttributeField(attribute, "Computed"));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue