Detlef Riekenberg : d3d9/tests: Fix test for old gfx-card.

Alexandre Julliard julliard at winehq.org
Mon Oct 13 06:39:20 CDT 2008


Module: wine
Branch: master
Commit: 7cfaf4aca080e3db4992e26004f26492a07f5f84
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7cfaf4aca080e3db4992e26004f26492a07f5f84

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Mon Oct 13 01:53:46 2008 +0200

d3d9/tests: Fix test for old gfx-card.

---

 dlls/d3d9/tests/stateblock.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d9/tests/stateblock.c b/dlls/d3d9/tests/stateblock.c
index ee5061f..e5d7ab2 100644
--- a/dlls/d3d9/tests/stateblock.c
+++ b/dlls/d3d9/tests/stateblock.c
@@ -62,7 +62,8 @@ static HRESULT init_d3d9(
 
     hres = IDirect3D9_CreateDevice(d3d9_ptr, D3DADAPTER_DEFAULT, D3DDEVTYPE_NULLREF, window,
         D3DCREATE_SOFTWARE_VERTEXPROCESSING, device_pparams, device);
-    ok(hres == D3D_OK, "IDirect3D_CreateDevice returned: 0x%x\n", hres);
+    ok(hres == D3D_OK || hres == D3DERR_NOTAVAILABLE,
+        "IDirect3D_CreateDevice returned: 0x%x\n", hres);
     return hres;
 }
 




More information about the wine-cvs mailing list