wined3d: Implement a zero-safe normalize function for FFP.
DirectX's FFP normalizes the zero vector to the zero vector, but GLSL
normalizes them to all NaN.
This patch creates ffp_normalize, which normalizes vectors but
has DirectX's behavior on 0 vectors. Further patches in this set switch
other calls from GLSL's normalize to the 0-safe version.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36564
Showing
Please
register
or
sign in
to comment