d3d10core/tests: Check that blend states implement ID3D10BlendState1.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2015-10-20 01:46:44 +02:00 committed by Alexandre Julliard
parent 8c6faa29a5
commit dcdef7effc
1 changed files with 6 additions and 0 deletions

View File

@ -1435,6 +1435,7 @@ static void test_create_blend_state(void)
D3D10_BLEND_DESC blend_desc;
ID3D11Device *d3d11_device;
ID3D10Device *device, *tmp;
IUnknown *iface;
unsigned int i;
HRESULT hr;
@ -1476,6 +1477,11 @@ static void test_create_blend_state(void)
ok(refcount == expected_refcount, "Got unexpected refcount %u, expected %u.\n", refcount, expected_refcount);
ID3D10Device_Release(tmp);
hr = ID3D10BlendState_QueryInterface(blend_state1, &IID_ID3D10BlendState1, (void **)&iface);
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Blend state should implement ID3D10BlendState1.\n");
if (SUCCEEDED(hr)) IUnknown_Release(iface);
hr = ID3D10Device_QueryInterface(device, &IID_ID3D11Device, (void **)&d3d11_device);
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Device should implement ID3D11Device.\n");