[PATCH 2/6] ddraw/tests: Get rid of the unused "d3d" variable in test_shademode().
Henri Verbeet
hverbeet at codeweavers.com
Tue Mar 22 11:46:09 CDT 2016
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/ddraw/tests/ddraw1.c | 4 ----
dlls/ddraw/tests/ddraw2.c | 4 ----
2 files changed, 8 deletions(-)
diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c
index 8462873..02eb9c9 100644
--- a/dlls/ddraw/tests/ddraw1.c
+++ b/dlls/ddraw/tests/ddraw1.c
@@ -7939,7 +7939,6 @@ static void test_shademode(void)
DWORD color0, color1;
UINT i, inst_length;
IDirectDraw *ddraw;
- IDirect3D *d3d;
ULONG refcount;
HWND window;
HRESULT hr;
@@ -7986,8 +7985,6 @@ static void test_shademode(void)
return;
}
- hr = IDirect3DDevice_GetDirect3D(device, &d3d);
- ok(SUCCEEDED(hr), "Failed to get d3d interface, hr %#x.\n", hr);
hr = IDirect3DDevice_QueryInterface(device, &IID_IDirectDrawSurface, (void **)&rt);
ok(SUCCEEDED(hr), "Failed to get render target, hr %#x.\n", hr);
@@ -8061,7 +8058,6 @@ static void test_shademode(void)
destroy_viewport(device, viewport);
destroy_material(background);
IDirectDrawSurface_Release(rt);
- IDirect3D_Release(d3d);
refcount = IDirect3DDevice_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount);
IDirectDraw_Release(ddraw);
diff --git a/dlls/ddraw/tests/ddraw2.c b/dlls/ddraw/tests/ddraw2.c
index fe86149..ee3508f 100644
--- a/dlls/ddraw/tests/ddraw2.c
+++ b/dlls/ddraw/tests/ddraw2.c
@@ -9063,7 +9063,6 @@ static void test_shademode(void)
DWORD color0, color1;
IDirectDraw2 *ddraw;
D3DLVERTEX *quad;
- IDirect3D2 *d3d;
ULONG refcount;
UINT i, count;
HWND window;
@@ -9113,8 +9112,6 @@ static void test_shademode(void)
return;
}
- hr = IDirect3DDevice2_GetDirect3D(device, &d3d);
- ok(SUCCEEDED(hr), "Failed to get d3d interface, hr %#x.\n", hr);
hr = IDirect3DDevice2_GetRenderTarget(device, &rt);
ok(SUCCEEDED(hr), "Failed to get render target, hr %#x.\n", hr);
@@ -9164,7 +9161,6 @@ static void test_shademode(void)
destroy_viewport(device, viewport);
destroy_material(background);
IDirectDrawSurface_Release(rt);
- IDirect3D2_Release(d3d);
refcount = IDirect3DDevice2_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount);
IDirectDraw_Release(ddraw);
--
2.1.4
More information about the wine-patches
mailing list