mirror of
https://github.com/microsoft/DirectXMath
synced 2024-11-21 20:00:12 +00:00
Fixed XMConvertFloatToHalf conformance issue for 0
This commit is contained in:
parent
455f4ca150
commit
bcc9236ae5
@ -421,6 +421,10 @@ inline HALF XMConvertFloatToHalf
|
||||
Result = 0x7C00U; // INF
|
||||
}
|
||||
}
|
||||
else if (!IValue)
|
||||
{
|
||||
Result = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (IValue < 0x38800000U)
|
||||
|
Loading…
Reference in New Issue
Block a user