d3d9/tests: Make sure to use return values (LLVM/Clang).

This commit is contained in:
Austin English 2011-02-16 18:37:45 -08:00 committed by Alexandre Julliard
parent b917903291
commit 66f5234f3e
1 changed files with 3 additions and 0 deletions

View File

@ -11290,7 +11290,9 @@ static void clip_planes_test(IDirect3DDevice9 *device)
ok(SUCCEEDED(hr), "SetRenderState failed, hr %#x.\n", hr);
hr = IDirect3DDevice9_SetVertexShader(device, NULL);
ok(hr == D3D_OK, "IDirect3DDevice9_SetVertexShader failed, hr=%08x\n", hr);
hr = IDirect3DDevice9_SetPixelShader(device, NULL);
ok(hr == D3D_OK, "IDirect3DDevice9_SetPixelShader failed, hr=%08x\n", hr);
IDirect3DDevice9_SetClipPlane(device, 0, plane0);
@ -11328,6 +11330,7 @@ static void clip_planes_test(IDirect3DDevice9 *device)
IDirect3DDevice9_SetRenderState(device, D3DRS_CLIPPLANEENABLE, 0);
hr = IDirect3DDevice9_SetVertexShader(device, NULL);
ok(hr == D3D_OK, "IDirect3DDevice9_SetVertexShader failed, hr=%08x\n", hr);
IDirect3DVertexShader9_Release(shader);
hr = IDirect3DDevice9_SetRenderTarget(device, 0, original_rt);
ok(hr == D3D_OK, "IDirect3DDevice9_SetRenderTarget failed, hr=%08x\n", hr);