Commit a6510b3f authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

wined3d: Use INFINITY.

parent cb8af015
......@@ -1049,7 +1049,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;
......
......@@ -199,7 +199,7 @@ 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 */
if(m == 0) return sgn * INFINITY;
else return NAN;
}
}
......@@ -221,7 +221,7 @@ static inline float float_24_to_32(DWORD in)
}
else
{
if (m == 0) return sgn / 0.0f; /* +INF / -INF */
if (m == 0) return sgn * INFINITY;
else return NAN;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment