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:
parent
dcdef7effc
commit
5323dd8836
|
@ -1874,6 +1874,7 @@ static void test_create_blend_state(void)
|
||||||
ULONG refcount, expected_refcount;
|
ULONG refcount, expected_refcount;
|
||||||
ID3D11Device *device, *tmp;
|
ID3D11Device *device, *tmp;
|
||||||
unsigned int i, j;
|
unsigned int i, j;
|
||||||
|
IUnknown *iface;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
if (!(device = create_device(NULL)))
|
if (!(device = create_device(NULL)))
|
||||||
|
@ -1946,6 +1947,15 @@ static void test_create_blend_state(void)
|
||||||
obtained_desc.RenderTarget[0].RenderTargetWriteMask, i);
|
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);
|
refcount = ID3D11BlendState_Release(blend_state1);
|
||||||
ok(refcount == 1, "Got unexpected refcount %u.\n", refcount);
|
ok(refcount == 1, "Got unexpected refcount %u.\n", refcount);
|
||||||
refcount = ID3D11BlendState_Release(blend_state2);
|
refcount = ID3D11BlendState_Release(blend_state2);
|
||||||
|
|
Loading…
Reference in New Issue