diff --git a/Inc/DirectXPackedVector.inl b/Inc/DirectXPackedVector.inl index dcce924..fedcd60 100644 --- a/Inc/DirectXPackedVector.inl +++ b/Inc/DirectXPackedVector.inl @@ -421,6 +421,10 @@ inline HALF XMConvertFloatToHalf Result = 0x7C00U; // INF } } + else if (!IValue) + { + Result = 0; + } else { if (IValue < 0x38800000U)