[PATCH 2/5] d3d8/tests: Add a test for CheckDeviceFormat() with an unsupported adapter format.
Matteo Bruni
matteo.mystral at gmail.com
Fri Mar 8 12:25:31 CST 2019
On Fri, Mar 8, 2019 at 7:04 PM Henri Verbeet <hverbeet at gmail.com> wrote:
>
> On Thu, 7 Mar 2019 at 23:45, Matteo Bruni <mbruni at codeweavers.com> wrote:
> > + hr = IDirect3D8_CheckDeviceFormat(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_A8R8G8B8,
> > + 0, D3DRTYPE_TEXTURE, D3DFMT_X8R8G8B8);
> > + ok(hr == D3DERR_NOTAVAILABLE, "Got unexpected hr %#x.\n", hr);
> > + hr = IDirect3D8_CheckDeviceFormat(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8,
> > + 0, D3DRTYPE_TEXTURE, D3DFMT_X8R8G8B8);
> > + ok(hr == D3D_OK || broken(hr == D3DERR_NOTAVAILABLE) /* Testbot Windows <= 7 */,
> > + "Got unexpected hr %#x.\n", hr);
>
> This returns D3DERR_NOTAVAILABLE with the "gdi" renderer as well.
Good point, I'll resend without the broken().
More information about the wine-devel
mailing list