Commit b77ac263 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

wined3d: Add default case in wined3d_calculate_fog_factor.

parent e3a89b6e
......@@ -3501,6 +3501,9 @@ static float wined3d_calculate_fog_factor(float fog_coord, const struct lights_s
return expf(-fog_coord * ls->fog_density);
case WINED3D_FOG_EXP2:
return expf(-fog_coord * fog_coord * ls->fog_density * ls->fog_density);
default:
ERR("Unhandled fog mode %#x.\n", ls->fog_mode);
return 0.0f;
}
}
......
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