d3d9: Accept D3DDEVTYPE_REF devices in the vertex declaration test.
This commit is contained in:
parent
47a8a6bd44
commit
998426e6b7
|
@ -61,11 +61,15 @@ static IDirect3DDevice9 *init_d3d9(void)
|
||||||
|
|
||||||
hres = IDirect3D9_CreateDevice(d3d9_ptr, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, NULL, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device_ptr);
|
hres = IDirect3D9_CreateDevice(d3d9_ptr, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, NULL, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device_ptr);
|
||||||
|
|
||||||
|
if(FAILED(hres))
|
||||||
|
{
|
||||||
|
hres = IDirect3D9_CreateDevice(d3d9_ptr, D3DADAPTER_DEFAULT, D3DDEVTYPE_REF, NULL, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device_ptr);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
{
|
{
|
||||||
trace("could not create device, IDirect3D9_CreateDevice returned %#x\n", hres);
|
trace("could not create device, IDirect3D9_CreateDevice returned %#x\n", hres);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return device_ptr;
|
return device_ptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue