[PATCH 3/5] ddraw: Declare the same number of planes as compute_sphere_visibility takes (GCC 11).
Henri Verbeet
hverbeet at gmail.com
Wed Sep 29 05:45:02 CDT 2021
On Mon, 27 Sept 2021 at 10:58, Rémi Bernon <rbernon at codeweavers.com> wrote:
> @@ -4678,7 +4678,7 @@ static HRESULT WINAPI d3d_device3_ComputeSphereVisibility(IDirect3DDevice3 *ifac
> D3DVECTOR *centers, D3DVALUE *radii, DWORD sphere_count, DWORD flags, DWORD *return_values)
> {
> static const DWORD enabled_planes = 0x3f;
> - struct wined3d_vec4 plane[6];
> + struct wined3d_vec4 plane[12];
> unsigned int i, j;
>
It seems tempting to rewrite compute_sphere_visibility() to use
wined3d_bit_scan() and get rid of both instances of "12" in there.
More information about the wine-devel
mailing list