ddraw/tests: Get rid of the unused "d3d" variable in test_shademode().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f0c7c7f627
commit
3c7ca3d553
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue