CPU/PGXP: Don't force inputs to valid on add/sub
This commit is contained in:
@ -65,6 +65,14 @@ struct PGXP_value
|
||||
}
|
||||
|
||||
ALWAYS_INLINE bool HasValid(u32 comp) const { return ConvertToBoolUnchecked((flags >> comp) & 1); }
|
||||
ALWAYS_INLINE float GetValidX(u32 psxval) const
|
||||
{
|
||||
return (flags & 1) ? x : static_cast<float>(static_cast<s16>(psxval));
|
||||
}
|
||||
ALWAYS_INLINE float GetValidY(u32 psxval) const
|
||||
{
|
||||
return (flags & 2) ? y : static_cast<float>(static_cast<s16>(psxval >> 16));
|
||||
}
|
||||
};
|
||||
|
||||
struct State
|
||||
|
||||
Reference in New Issue
Block a user