mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.
It is unlikely we will ever use this without first doing a Cast to a signed type. Fixes 9 "unary minus operator applied to unsigned type, result still unsigned" warnings on MSVC2017.3
This commit is contained in:
		
							parent
							
								
									d881dee818
								
							
						
					
					
						commit
						a321bce378
					
				
					 2 changed files with 9 additions and 5 deletions
				
			
		|  | @ -98,7 +98,7 @@ void ProcessTriangle(const OutputVertex& v0, const OutputVertex& v1, const Outpu | |||
| 
 | ||||
|     auto FlipQuaternionIfOpposite = [](auto& a, const auto& b) { | ||||
|         if (Math::Dot(a, b) < float24::Zero()) | ||||
|             a = -a; | ||||
|             a = a * float24::FromFloat32(-1.0f); | ||||
|     }; | ||||
| 
 | ||||
|     // Flip the quaternions if they are opposite to prevent interpolating them over the wrong
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue