d3d9: Ignore a Windows 7 failure in the d3d9 depth clamp test.

This commit is contained in:
Stefan Dösinger 2010-07-03 10:53:14 +02:00 committed by Alexandre Julliard
parent 604f79dbdb
commit cb4ba6a862
1 changed files with 11 additions and 0 deletions

View File

@ -10862,6 +10862,17 @@ static void depth_clamp_test(IDirect3DDevice9 *device)
vp.MaxZ = 7.5;
hr = IDirect3DDevice9_SetViewport(device, &vp);
if(FAILED(hr))
{
/* Windows 7 rejects MaxZ > 1.0, Windows XP allows it. This doesn't break
* the tests because the 7.5 is just intended to show that it doesn't have
* any influence on the drawing or D3DRS_CLIPPING = FALSE. Set an accepted
* viewport and continue.
*/
ok(broken(hr == D3DERR_INVALIDCALL), "D3D rejected maxZ > 1.0\n");
vp.MaxZ = 1.0;
hr = IDirect3DDevice9_SetViewport(device, &vp);
}
ok(SUCCEEDED(hr), "SetViewport failed, hr %#x.\n", hr);
hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, 0xffffffff, 1.0, 0);