=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d10core/tests: Check that blend states implement ID3D10BlendState1.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 20 11:28:31 CDT 2015


Module: wine
Branch: master
Commit: dcdef7effcb664e4e869a5836e5959bcbdb22c2f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dcdef7effcb664e4e869a5836e5959bcbdb22c2f

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Oct 20 01:46:44 2015 +0200

d3d10core/tests: Check that blend states implement ID3D10BlendState1.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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");




More information about the wine-cvs mailing list