d3dx9_36: Add one more missing f suffix

Andrey Gusev andrey.goosev at gmail.com
Fri Dec 20 05:32:18 CST 2013


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131220/52d9a7c2/attachment.html>
-------------- next part --------------
From 2099d8c3bbe62274aaf7b807394e8ff85f604160 Mon Sep 17 00:00:00 2001
Message-Id: <2099d8c3bbe62274aaf7b807394e8ff85f604160.1387538912.git.andrey.goosev at gmail.com>
From: Andrey Gusev <andrey.goosev at gmail.com>
Date: Fri, 20 Dec 2013 13:28:15 +0200
Subject: d3dx9_36: Add one more missing f suffix

---
 dlls/d3dx9_36/math.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c
index c32dfda..b33e062 100644
--- a/dlls/d3dx9_36/math.c
+++ b/dlls/d3dx9_36/math.c
@@ -2409,7 +2409,7 @@ FLOAT* WINAPI D3DXSHEvalDirection(FLOAT *out, UINT order, const D3DXVECTOR3 *dir
     out[20] = 3.0f / (16.0f * sqrtf(D3DX_PI)) * (35.0f * dirzzzz - 30.f * dirzz + 3.0f);
     out[21] = 0.375f * sqrtf(10.0f / D3DX_PI) * dirxz * (3.0f - 7.0f * dirzz);
     out[22] = 0.375f * sqrtf(5.0f / D3DX_PI) * (dirxx - diryy) * (7.0f * dirzz - 1.0f);
-    out[23] = 3.0 * dir->z * out[15];
+    out[23] = 3.0f * dir->z * out[15];
     out[24] = 3.0f / 16.0f * sqrtf(35.0f / D3DX_PI) * (dirxxxx - 6.0f * dirxyxy + diryyyy);
     if (order == 5)
         return out;
-- 
1.8.1.2


More information about the wine-patches mailing list