ddraw: Use wined3d_bit_scan() in compute_sphere_visibility().
commit996cfb841ef5618f78400d42a862d2015ff37536
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 10 Nov 2021 10:36:08 +0000 (10 11:36 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 10 Nov 2021 17:55:55 +0000 (10 18:55 +0100)
treebd612368360501f016780b6805a5b1bdf568ea09
parentf43b312562c73fe21c64abe3fb6fc040847db8e9
ddraw: Use wined3d_bit_scan() in compute_sphere_visibility().

RĂ©mi Bernon reports an unspecified issue with gcc 11 related to
compute_sphere_visibility() expecting 12 input planes, but
d3d_device3_ComputeSphereVisibility() only providing 6. The actual number of
planes required depends on the "enabled_planes" mask. This patch should make
the code better reflect that, but I do not have a gcc 11 setup to verify it
resolves the issue there.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ddraw/device.c