d3d8/tests: State getters don't work with PUREDEVICEs.
This commit is contained in:
parent
8b57a585ad
commit
c7b509b16c
|
@ -1726,7 +1726,7 @@ static void test_lights(void)
|
||||||
d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
|
d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
|
||||||
|
|
||||||
hr = IDirect3D8_CreateDevice( d3d8, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL /* no NULLREF here */, hwnd,
|
hr = IDirect3D8_CreateDevice( d3d8, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL /* no NULLREF here */, hwnd,
|
||||||
D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_PUREDEVICE, &d3dpp, &device );
|
D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &device );
|
||||||
ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE || hr == D3DERR_INVALIDCALL,
|
ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE || hr == D3DERR_INVALIDCALL,
|
||||||
"IDirect3D8_CreateDevice failed with %08x\n", hr);
|
"IDirect3D8_CreateDevice failed with %08x\n", hr);
|
||||||
if(!device)
|
if(!device)
|
||||||
|
@ -2525,7 +2525,7 @@ static void test_ApplyStateBlock(void)
|
||||||
d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
|
d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
|
||||||
|
|
||||||
hr = IDirect3D8_CreateDevice( d3d8, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd,
|
hr = IDirect3D8_CreateDevice( d3d8, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd,
|
||||||
D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_PUREDEVICE, &d3dpp, &device );
|
D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &device );
|
||||||
ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE || hr == D3DERR_INVALIDCALL,
|
ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE || hr == D3DERR_INVALIDCALL,
|
||||||
"IDirect3D8_CreateDevice failed with %#x\n", hr);
|
"IDirect3D8_CreateDevice failed with %#x\n", hr);
|
||||||
if(!device)
|
if(!device)
|
||||||
|
|
Loading…
Reference in New Issue