Austin English : d3d9/tests: Make sure to use return values (LLVM/Clang).
Module: wine Branch: master Commit: 66f5234f3e4d2e5cc2ddaa3b8938c92996db277d URL: http://source.winehq.org/git/wine.git/?a=commit;h=66f5234f3e4d2e5cc2ddaa3b89... Author: Austin English <austinenglish(a)gmail.com> Date: Wed Feb 16 18:37:45 2011 -0800 d3d9/tests: Make sure to use return values (LLVM/Clang). --- dlls/d3d9/tests/visual.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 0800892..9a40891 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -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);
participants (1)
-
Alexandre Julliard