summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2018-03-10 14:28:10 +0100
committerAxel Davy <[email protected]>2018-03-18 22:53:42 +0100
commitf61e9a958bd8d61cb7ca575ca987caefc6edbffd (patch)
treeacee125ab180a1a2d4c20408bf8e442da13a7ce2 /src/gallium
parent71eae7940ef7fa92e01cdc9afa1172f92d4b489e (diff)
st/nine: Fixes warning about implicit conversion
Makes the conversion explicit. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=102542 Signed-off-by: Axel Davy <[email protected]> Reviewed-by: Patrick Rudolph <[email protected]> Tested-by: Dieter Nützel <[email protected]> CC: "17.3 18.0" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/nine/nine_ff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c
index eb673e4aff9..6c30839b29b 100644
--- a/src/gallium/state_trackers/nine/nine_ff.c
+++ b/src/gallium/state_trackers/nine/nine_ff.c
@@ -1935,7 +1935,7 @@ nine_ff_load_lights(struct NineDevice9 *device)
dst[38 + l * 8].x = cosf(light->Theta * 0.5f);
dst[38 + l * 8].y = cosf(light->Phi * 0.5f);
dst[38 + l * 8].z = 1.0f / (dst[38 + l * 8].x - dst[38 + l * 8].y);
- dst[39 + l * 8].w = (l + 1) == context->ff.num_lights_active;
+ dst[39 + l * 8].w = (float)((l + 1) == context->ff.num_lights_active);
}
}