H. Verbeet : d3d9: Unset the pixel shader at the end of cnd_test().

Alexandre Julliard julliard at winehq.org
Wed Jun 25 16:44:12 CDT 2008

Module: wine
Branch: master
Commit: 674b3b84e964d8552ae92388bfec44c13f7f9623
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=674b3b84e964d8552ae92388bfec44c13f7f9623

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Wed Jun 25 17:09:35 2008 +0200

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 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index 56159fd..611a589 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

More information about the wine-cvs mailing list