[2/5] WineD3D: Use 0/0/0 as normal if no normal is supplied

Stefan Dösinger stefan at codeweavers.com
Tue Aug 21 09:33:11 CDT 2007


Am Dienstag, 21. August 2007 12:57 schrieb H. Verbeet:
> I'm not sure about this one. Unless explicitly checked for, (0, 0, 0)
> will cause a division by zero when trying to normalize it, and I don't
> know for sure if GL has well defined behaviour for it.
You're right, this patch is asking for problems with normalization. Perhaps we 
should disable normalization if no normals are provided, but I will double 
check the lighting equations first for divisions by zero, but afair there's 
only a cross product and a multiplication there.



More information about the wine-patches mailing list