d3d9: Remove superflous NULL checks (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-26 17:12:42 +02:00 committed by Alexandre Julliard
parent a6b714d082
commit 8e5c79e439
1 changed files with 2 additions and 5 deletions

View File

@ -11618,11 +11618,8 @@ static void clip_planes_test(IDirect3DDevice9 *device)
hr = IDirect3DDevice9_SetRenderTarget(device, 0, original_rt); hr = IDirect3DDevice9_SetRenderTarget(device, 0, original_rt);
ok(hr == D3D_OK, "IDirect3DDevice9_SetRenderTarget failed, hr=%08x\n", hr); ok(hr == D3D_OK, "IDirect3DDevice9_SetRenderTarget failed, hr=%08x\n", hr);
IDirect3DSurface9_Release(original_rt); IDirect3DSurface9_Release(original_rt);
if (offscreen) IDirect3DSurface9_Release(offscreen_surface);
{ IDirect3DTexture9_Release(offscreen);
IDirect3DSurface9_Release(offscreen_surface);
IDirect3DTexture9_Release(offscreen);
}
} }
static void fp_special_test(IDirect3DDevice9 *device) static void fp_special_test(IDirect3DDevice9 *device)