From: Elizabeth Figura zfigura@codeweavers.com
f35c563a0589e38253d386b13b0068e3a06f5802 did not properly port this condition.
Fixes: f35c563a0589e38253d386b13b0068e3a06f5802 --- dlls/wined3d/stateblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index cb26f01a0b9..93a21210770 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -3980,7 +3980,7 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device, float start = int_to_float(state->rs[WINED3D_RS_FOGSTART]); float end = int_to_float(state->rs[WINED3D_RS_FOGEND]);
- if (start == end) + if (start == end && state->rs[WINED3D_RS_FOGTABLEMODE] == WINED3D_FOG_NONE) { /* With vertex fog, everything is fogged. * With pixel fog, coordinates < start are unfogged,