d3dx8: Correct trace minimum in D3DXQuaternionRotationMatrix with tests

Busquets Pérez Luis C. luiscar2001 at yahoo.es
Wed Aug 20 12:27:52 CDT 2008


This patch solves a bug in wine. Currently the function D3DXQuaternionRotationMatrix evaluates the values 
of the components of the vector from the "trace" whenever this is bigger 
than 0. The literacy discourages this as the error can be very big if 
trace is near 0. From the tests implemented in this patch, it comes out 
that the value with whom trace is compared is 1.0f. Therefore, this 
patch adds tests to verify the cases where trace is between 0.0 and 2.0 
to ensure the expected result.


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3DXQuaternionRotationMatrix.patch
Type: application/octet-stream
Size: 8581 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080820/80ab9600/attachment.obj 


More information about the wine-patches mailing list