mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 05:40:30 +01:00
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 <davyaxel0@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> CC: "17.3 18.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
71eae7940e
commit
f61e9a958b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue