From b77ac263777304df214285bef4eaf1a42c35e163 Mon Sep 17 00:00:00 2001 From: Gijs Vermeulen Date: Fri, 4 Oct 2019 22:26:49 +0200 Subject: [PATCH] wined3d: Add default case in wined3d_calculate_fog_factor. Signed-off-by: Gijs Vermeulen Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 9b1b6300140..0a668c46b5c 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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; } }