Module: wine Branch: master Commit: bdc29f83bc6fcd3c550fdb710d634e48c9b1739b URL: http://source.winehq.org/git/wine.git/?a=commit;h=bdc29f83bc6fcd3c550fdb710d...
Author: Andrew Nguyen anguyen@codeweavers.com Date: Mon Jun 21 10:15:18 2010 -0500
ddraw/tests: Add an observation regarding device color model criteria for IDirect3D3::FindDevice.
---
dlls/ddraw/tests/d3d.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index 7f47d20..069bc96 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)