mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Rasterizer: Fixed a warning in GetWrappedTexCoord.
Redeclaring the variable inside the switch was causing weird behavior.
This commit is contained in:
		
							parent
							
								
									ec8f2210e3
								
							
						
					
					
						commit
						5410367ebf
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -266,10 +266,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0, | |||
| 
 | ||||
|                         case Regs::TextureConfig::MirroredRepeat: | ||||
|                         { | ||||
|                             int val = (int)((unsigned)val % (2 * size)); | ||||
|                             if (val >= size) | ||||
|                                 val = 2 * size - 1 - val; | ||||
|                             return val; | ||||
|                             int coord = (int)((unsigned)val % (2 * size)); | ||||
|                             if (coord >= size) | ||||
|                                 coord = 2 * size - 1 - coord; | ||||
|                             return coord; | ||||
|                         } | ||||
| 
 | ||||
|                         default: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue