[PATCH 5/5] d3d9/tests: Trace the viewport in clear_test().
Henri Verbeet
hverbeet at codeweavers.com
Tue Dec 1 04:27:48 CST 2009
There are some failures in this test on Win7 that appear to be related to the
initial viewport. Perhaps this trace will help narrow it down.
---
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 b871ad7..18a69c6 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -495,6 +495,9 @@ static void clear_test(IDirect3DDevice9 *device)
hr = IDirect3DDevice9_GetViewport(device, &old_vp);
ok(hr == D3D_OK, "IDirect3DDevice9_GetViewport failed with %08x\n", hr);
+ trace("viewport: X %u, Y %u, W %u, H %u, MinZ %.8e, MaxZ %.8e.\n",
+ old_vp.X, old_vp.Y, old_vp.Width, old_vp.Height, old_vp.MinZ, old_vp.MaxZ);
+
vp.X = 160;
vp.Y = 120;
vp.Width = 160;
--
1.6.4.4
More information about the wine-patches
mailing list