16 Sep
2024
16 Sep
'24
3:24 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
} }
+static float d3dx_clamp(float value, float min_value, float max_value) +{ + if (isinf(value)) + return !signbit(value) ? max_value : min_value;
I think this is unnecessary, `Inf` should be already handled correctly by the "normal" value condition. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6360#note_82302