[PATCH 4/5] d3d9/tests: Don't test for equality in d3d9's depth_blit_test

Stefan Dösinger stefan at codeweavers.com
Wed Apr 24 04:29:56 CDT 2013


This makes the test pass on nv40 GPUs on Linux. I'm not sure if testing
equality was intentional or an accident, if it was intentional please
ignore this patch.

D3d8 does not allow depth blitting, and ddraw only tests 0.0 because of
problems with clearing the depth buffer to any other value on some
Windows drivers.
---
 dlls/d3d9/tests/visual.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index 82f364b..ba9ed2f 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -11609,7 +11609,7 @@ static void depth_blit_test(IDirect3DDevice9 *device)
     hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_ZBUFFER, 0, 0.0f, 0);
     ok(SUCCEEDED(hr), "Clear failed, hr %#x.\n", hr);
     SetRect(&dst_rect, 0, 0, 480, 360);
-    hr = IDirect3DDevice9_Clear(device, 1, (D3DRECT *)&dst_rect, D3DCLEAR_ZBUFFER, 0, 0.5f, 0);
+    hr = IDirect3DDevice9_Clear(device, 1, (D3DRECT *)&dst_rect, D3DCLEAR_ZBUFFER, 0, 0.51f, 0);
     ok(SUCCEEDED(hr), "Clear failed, hr %#x.\n", hr);
     SetRect(&dst_rect, 0, 0, 320, 240);
     hr = IDirect3DDevice9_Clear(device, 1, (D3DRECT *)&dst_rect, D3DCLEAR_ZBUFFER, 0, 1.0f, 0);
-- 
1.8.1.5




More information about the wine-patches mailing list