[PATCH 5/7] d3d10core/tests: Check that blend states implement ID3D10BlendState1.
Józef Kucia
jkucia at codeweavers.com
Mon Oct 19 18:46:44 CDT 2015
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/d3d10core/tests/device.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index dadf113..de9eee1 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -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");
--
2.4.10
More information about the wine-patches
mailing list