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:
Gijs Vermeulen 2019-10-04 22:26:49 +02:00 committed by Alexandre Julliard
parent e3a89b6e86
commit b77ac26377
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}