1
0
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:
Chuck Walbourn 2018-02-01 19:32:50 -08:00
parent 455f4ca150
commit bcc9236ae5

View File

@ -421,6 +421,10 @@ inline HALF XMConvertFloatToHalf
Result = 0x7C00U; // INF
}
}
else if (!IValue)
{
Result = 0;
}
else
{
if (IValue < 0x38800000U)