On Mon, 27 Sept 2021 at 10:58, RĂ©mi Bernon rbernon@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.