Commit 3c7ca3d5 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw/tests: Get rid of the unused "d3d" variable in test_shademode().

parent f0c7c7f6
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment