Skip to content

wined3d: Implement a zero-safe normalize function for FFP

Petrichor Park requested to merge petrathekat/wine:normalize-normals into master

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.

This fixes 36564.

Merge request reports

Loading