James Helferty : d3d9/tests: Fix position of EndScene in visual test.

Alexandre Julliard julliard at winehq.org
Thu Oct 15 08:54:27 CDT 2009


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

Author: James Helferty <jlh at transgaming.com>
Date:   Wed Oct 14 10:57:36 2009 -0400

d3d9/tests: Fix position of EndScene in visual test.

---

 dlls/d3d9/tests/visual.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index f12983d..c087f8b 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -9112,11 +9112,10 @@ static void tssargtemp_test(IDirect3DDevice9 *device)
     hr = IDirect3DDevice9_BeginScene(device);
     ok(hr == D3D_OK, "IDirect3DDevice9_BeginScene failed, hr = %08x\n", hr);
     if(SUCCEEDED(hr)) {
-
-        hr = IDirect3DDevice9_EndScene(device);
-        ok(hr == D3D_OK, "IDirect3DDevice9_EndScene failed, hr = %08x\n", hr);
         hr = IDirect3DDevice9_DrawPrimitiveUP(device, D3DPT_TRIANGLESTRIP, 2, quad, sizeof(quad[0]));
         ok(hr == D3D_OK, "IDirect3DDevice9_DrawPrimitiveUP failed with %08x\n", hr);
+        hr = IDirect3DDevice9_EndScene(device);
+        ok(hr == D3D_OK, "IDirect3DDevice9_EndScene failed, hr = %08x\n", hr);
     }
     IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL);
     color = getPixelColor(device, 320, 240);




More information about the wine-cvs mailing list