d3d9: Accept D3DDEVTYPE_REF devices in the vertex declaration test.

This commit is contained in:
Stefan Dösinger 2007-12-20 21:43:56 +01:00 committed by Alexandre Julliard
parent 47a8a6bd44
commit 998426e6b7
1 changed files with 6 additions and 2 deletions

View File

@ -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;