1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d9] Adjust matrix inversion boundary

This commit is contained in:
WinterSnowfall 2024-10-13 10:37:34 +03:00 committed by misyl
parent 05d089bee5
commit b99012d332

View File

@ -205,7 +205,7 @@ namespace dxvk {
Vector4 dot0 = { m[0] * row0 };
float dot1 = (dot0.x + dot0.y) + (dot0.z + dot0.w);
if (unlikely(std::abs(dot1) <= 0.000001f)) {
if (unlikely(std::abs(dot1) <= std::numeric_limits<float>::min() * 10)) {
return m;
}