https://bugs.winehq.org/show_bug.cgi?id=51139
--- Comment #17 from ms mst.misc@arcor.de --- (In reply to Dieter Jurzitza from comment #16)
thereby trying to avoid a divide - by - zero situation. However, this did not change anything in regards to the system behavior and the bug apparently remained "as is", wine crashing after messaging that a severe error had occured.
that is the right place, not sure why that doesn't work - maybe delta is still too close to 0?
for the workaround, try either:
- if (t < 0.0f || t > 1.0f) + if (isnan(t) || t < 0.0f || t > 1.0f) return TRUE;
or:
+ if (isnan(t)) { t = 0.0f; } if (t < 0.0f || t > 1.0f) return TRUE;