- Fix 3D rendering on non-MSVC builds.
This commit is contained in:
rogerman 2016-08-16 00:12:34 +00:00
parent 7abca69750
commit d837653b5f
1 changed files with 10 additions and 10 deletions

View File

@ -644,8 +644,8 @@ FORCEINLINE s64 GEM_Mul32x32To64(const s32 a, const s32 b)
static s32 GEM_SaturateAndShiftdown36To32(const s64 val)
{
if(val>0x000007FFFFFFFFFFLL) return 0x7FFFFFFF;
if(val<0xFFFFF80000000000LL) return 0x80000000;
if(val>(s64)0x000007FFFFFFFFFFULL) return (s32)0x7FFFFFFFU;
if(val<(s64)0xFFFFF80000000000ULL) return (s32)0x80000000U;
return fx32_shiftdown(val);
}