https://bugs.winehq.org/show_bug.cgi?id=47391
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- I think something as hr = IDirect3DDevice8_SetRenderState(device, D3DRS_ZENABLE, 0x55); /* test a nonzero dummy value */ ok(SUCCEEDED(hr), "Non zero dummy value should enable Z-buffering, hr %#lx.\n", hr);
in https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/d3d8/tests/visual.c#L...
should be enough to prove the fix is correct. Obviously, you will have to do the same for all the directx versions.
Surely, someone will confirm or infirm what I wrote above.