GTE: Fix NCDT

This commit is contained in:
Connor McLaughlin
2019-10-12 17:21:08 +10:00
parent 3f1fea0e97
commit 9bdff9e1dc
3 changed files with 14 additions and 17 deletions

View File

@ -99,7 +99,7 @@ void GTE::Core::TruncateAndSetMACAndIR(s64 value, u8 shift, bool lm)
}
template<u32 index>
u8 GTE::Core::TruncateRGB(s32 value)
u32 GTE::Core::TruncateRGB(s32 value)
{
if (value < 0 || value > 0xFF)
{
@ -110,8 +110,8 @@ u8 GTE::Core::TruncateRGB(s32 value)
else
m_regs.FLAG.color_b_saturated = true;
value = (value < 0) ? 0 : 0xFF;
return (value < 0) ? 0 : 0xFF;
}
return static_cast<u8>(value);
return static_cast<u32>(value);
}