Stefan Dösinger : d3d9: Accept D3DDEVTYPE_REF devices in the vertex declaration test.
Alexandre Julliard
julliard at winehq.org
Fri Dec 21 07:28:30 CST 2007
Module: wine
Branch: master
Commit: 998426e6b7fb51d6e6c5350514f64415bf5882a2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=998426e6b7fb51d6e6c5350514f64415bf5882a2
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Thu Dec 20 21:43:56 2007 +0100
d3d9: Accept D3DDEVTYPE_REF devices in the vertex declaration test.
---
dlls/d3d9/tests/vertexdeclaration.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/tests/vertexdeclaration.c b/dlls/d3d9/tests/vertexdeclaration.c
index d43b5ab..df8f162 100644
--- a/dlls/d3d9/tests/vertexdeclaration.c
+++ b/dlls/d3d9/tests/vertexdeclaration.c
@@ -63,8 +63,12 @@ static IDirect3DDevice9 *init_d3d9(void)
if(FAILED(hres))
{
- trace("could not create device, IDirect3D9_CreateDevice returned %#x\n", hres);
- return NULL;
+ hres = IDirect3D9_CreateDevice(d3d9_ptr, D3DADAPTER_DEFAULT, D3DDEVTYPE_REF, NULL, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device_ptr);
+ if(FAILED(hres))
+ {
+ trace("could not create device, IDirect3D9_CreateDevice returned %#x\n", hres);
+ return NULL;
+ }
}
return device_ptr;
More information about the wine-cvs
mailing list