From bdc29f83bc6fcd3c550fdb710d634e48c9b1739b Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Mon, 21 Jun 2010 10:15:18 -0500 Subject: [PATCH] ddraw/tests: Add an observation regarding device color model criteria for IDirect3D3::FindDevice. --- dlls/ddraw/tests/d3d.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index 7f47d20bbe8..069bc963fde 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -3487,6 +3487,17 @@ static void FindDevice(void) "[%d] Expected IDirect3D1::FindDevice to return D3D_OK, got 0x%08x\n", i, hr); } } + + /* Curiously the color model criteria seem to be ignored. */ + search.dwSize = sizeof(search); + search.dwFlags = D3DFDS_COLORMODEL; + search.dcmColorModel = 0xdeadbeef; + result.dwSize = sizeof(result); + + hr = IDirect3D_FindDevice(Direct3D1, &search, &result); + todo_wine + ok(hr == D3D_OK, + "Expected IDirect3D1::FindDevice to return D3D_OK, got 0x%08x\n", hr); } START_TEST(d3d) -- 2.11.4.GIT