From e64e16b567ddbbfb81d82c32c4aad5a8f0c559aa Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba@gmx.de>
Date: Fri, 27 Apr 2012 08:18:17 +0200
Subject: wined3d: Fix build with MSVC.

---
 dlls/wined3d/state.c           |    2 +-
 dlls/wined3d/wined3d_private.h |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 5e6c537..6a0e81c 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -1046,7 +1046,7 @@ void state_fogstartend(struct wined3d_context *context, const struct wined3d_sta
             fogend = tmpvalue.f;
             /* In GL, fogstart == fogend disables fog, in D3D everything's fogged.*/
             if(fogstart == fogend) {
-                fogstart = -1.0f / 0.0f;
+                fogstart = -INFINITY;
                 fogend = 0.0f;
             }
             break;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 0a110f8..8d4c2ff 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -199,8 +199,8 @@ static inline float float_16_to_32(const unsigned short *in) {
     } else if(e < 31) {
         return sgn * powf(2, (float)e - 15.0f) * (1.0f + ((float)m / 1024.0f));
     } else {
-        if(m == 0) return sgn / 0.0f; /* +INF / -INF */
-        else return 0.0f / 0.0f; /* NAN */
+        if(m == 0) return sgn * INFINITY; /* +INF / -INF */
+        else return NAN;
     }
 }
 
@@ -221,8 +221,8 @@ static inline float float_24_to_32(DWORD in)
     }
     else
     {
-        if (m == 0) return sgn / 0.0f; /* +INF / -INF */
-        else return 0.0f / 0.0f; /* NAN */
+        if (m == 0) return sgn * INFINITY; /* +INF / -INF */
+        else return NAN;
     }
 }
 
-- 
1.7.1.GIT
