Detlef Riekenberg : d3d9/tests: Fix test on win9x.
Module: wine Branch: master Commit: c27b37a77ecaed5d12820284c70ce70cea39cecb URL: http://source.winehq.org/git/wine.git/?a=commit;h=c27b37a77ecaed5d12820284c7... Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Mon Oct 13 01:47:46 2008 +0200 d3d9/tests: Fix test on win9x. --- dlls/d3d9/tests/device.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c index cd57772..3cafce2 100644 --- a/dlls/d3d9/tests/device.c +++ b/dlls/d3d9/tests/device.c @@ -122,8 +122,11 @@ static void test_mipmap_levels(void) hr = IDirect3D9_CreateDevice( pD3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_NULLREF, hwnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &pDevice ); - ok(SUCCEEDED(hr), "Failed to create IDirect3D9Device (%08x)\n", hr); - if (FAILED(hr)) goto cleanup; + ok(SUCCEEDED(hr) || hr == D3DERR_NOTAVAILABLE, "Failed to create IDirect3D9Device (%08x)\n", hr); + if (FAILED(hr)) { + skip("failed to create a d3d device\n"); + goto cleanup; + } check_mipmap_levels(pDevice, 32, 32, 6); check_mipmap_levels(pDevice, 256, 1, 9);
participants (1)
-
Alexandre Julliard