forked from Mirrors/wine-wine
ddraw: Ignore the colour model in d3d3_FindDevice().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
8a66164f89
commit
29b794dcca
|
@ -4049,12 +4049,8 @@ static HRESULT WINAPI d3d3_FindDevice(IDirect3D3 *iface, D3DFINDDEVICESEARCH *fd
|
|||
|| fdr->dwSize != sizeof(D3DFINDDEVICERESULT))
|
||||
return DDERR_INVALIDPARAMS;
|
||||
|
||||
if ((fds->dwFlags & D3DFDS_COLORMODEL)
|
||||
&& fds->dcmColorModel != D3DCOLOR_RGB)
|
||||
{
|
||||
WARN("Trying to request a non-RGB D3D color model. Not supported.\n");
|
||||
return DDERR_INVALIDPARAMS; /* No real idea what to return here :-) */
|
||||
}
|
||||
if (fds->dwFlags & D3DFDS_COLORMODEL)
|
||||
WARN("Ignoring colour model %#x.\n", fds->dcmColorModel);
|
||||
|
||||
if (fds->dwFlags & D3DFDS_GUID)
|
||||
{
|
||||
|
|
|
@ -11812,7 +11812,7 @@ static void test_find_device(void)
|
|||
search.dcmColorModel = 0xdeadbeef;
|
||||
result.dwSize = sizeof(result);
|
||||
hr = IDirect3D_FindDevice(d3d, &search, &result);
|
||||
todo_wine ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
IDirect3D_Release(d3d);
|
||||
IDirectDraw_Release(ddraw);
|
||||
|
|
|
@ -13094,7 +13094,7 @@ static void test_find_device(void)
|
|||
search.dcmColorModel = 0xdeadbeef;
|
||||
result.dwSize = sizeof(result);
|
||||
hr = IDirect3D2_FindDevice(d3d, &search, &result);
|
||||
todo_wine ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
IDirect3D2_Release(d3d);
|
||||
IDirectDraw2_Release(ddraw);
|
||||
|
|
|
@ -15186,7 +15186,7 @@ static void test_find_device(void)
|
|||
search.dcmColorModel = 0xdeadbeef;
|
||||
result.dwSize = sizeof(result);
|
||||
hr = IDirect3D3_FindDevice(d3d, &search, &result);
|
||||
todo_wine ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
IDirect3D3_Release(d3d);
|
||||
IDirectDraw4_Release(ddraw);
|
||||
|
|
Loading…
Reference in New Issue