d3d11/tests: Check that blend states implement ID3D10BlendState.

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:45 +02:00 committed by Alexandre Julliard
parent dcdef7effc
commit 5323dd8836
1 changed files with 10 additions and 0 deletions

View File

@ -1874,6 +1874,7 @@ static void test_create_blend_state(void)
ULONG refcount, expected_refcount;
ID3D11Device *device, *tmp;
unsigned int i, j;
IUnknown *iface;
HRESULT hr;
if (!(device = create_device(NULL)))
@ -1946,6 +1947,15 @@ static void test_create_blend_state(void)
obtained_desc.RenderTarget[0].RenderTargetWriteMask, i);
}
hr = ID3D11BlendState_QueryInterface(blend_state1, &IID_ID3D10BlendState, (void **)&iface);
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Blend state should implement ID3D10BlendState.\n");
if (SUCCEEDED(hr)) IUnknown_Release(iface);
hr = ID3D11BlendState_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);
refcount = ID3D11BlendState_Release(blend_state1);
ok(refcount == 1, "Got unexpected refcount %u.\n", refcount);
refcount = ID3D11BlendState_Release(blend_state2);