d3d9: Remove superflous NULL checks (Coverity).
This commit is contained in:
parent
a6b714d082
commit
8e5c79e439
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue