wined3d: Add default case in wined3d_calculate_fog_factor.
Signed-off-by: Gijs Vermeulen <gijsvrm@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e3a89b6e86
commit
b77ac26377
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue