From 674b3b84e964d8552ae92388bfec44c13f7f9623 Mon Sep 17 00:00:00 2001 From: "H. Verbeet" <hverbeet@gmail.com> Date: Wed, 25 Jun 2008 17:09:35 +0200 Subject: [PATCH] d3d9: Unset the pixel shader at the end of cnd_test(). This prevents failures in subsequent tests when no PS2.0 support is present. --- dlls/d3d9/tests/visual.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 56159fd835d..611a589963c 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -4891,6 +4891,9 @@ static void cnd_test(IDirect3DDevice9 *device) hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); ok(hr == D3D_OK, "IDirect3DDevice9_Present failed with %s\n", DXGetErrorString9(hr)); + hr = IDirect3DDevice9_SetPixelShader(device, NULL); + ok(hr == D3D_OK, "IDirect3DDevice9_SetPixelShader returned %s\n", DXGetErrorString9(hr)); + /* This is the 1.4 test. The coissue doesn't change the behavior here, but keep in mind * that we swapped the values in c1 and c2 to make the other tests return some color */ -- GitLab