d3dx9: Get rid of redundant temporary variable in D3DXQuaternionInverse.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2016-04-14 15:10:12 +03:00 committed by Alexandre Julliard
parent 97bbf747c0
commit a67b43c1be
1 changed files with 4 additions and 7 deletions

View File

@ -1376,19 +1376,16 @@ D3DXQUATERNION * WINAPI D3DXQuaternionExp(D3DXQUATERNION *out, const D3DXQUATERN
D3DXQUATERNION* WINAPI D3DXQuaternionInverse(D3DXQUATERNION *pout, const D3DXQUATERNION *pq)
{
D3DXQUATERNION out;
FLOAT norm;
TRACE("pout %p, pq %p\n", pout, pq);
norm = D3DXQuaternionLengthSq(pq);
out.x = -pq->x / norm;
out.y = -pq->y / norm;
out.z = -pq->z / norm;
out.w = pq->w / norm;
*pout =out;
pout->x = -pq->x / norm;
pout->y = -pq->y / norm;
pout->z = -pq->z / norm;
pout->w = pq->w / norm;
return pout;
}