Axel Davy : d3d8/tests: Fix test_3dc_formats getPixelColor check.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 13 15:01:25 CST 2015


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

Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Jan 11 11:29:14 2015 +0100

d3d8/tests: Fix test_3dc_formats getPixelColor check.

---

 dlls/d3d8/tests/visual.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c
index 68c3319..e47e6a8 100644
--- a/dlls/d3d8/tests/visual.c
+++ b/dlls/d3d8/tests/visual.c
@@ -5197,8 +5197,6 @@ static void test_3dc_formats(void)
     hr = IDirect3DDevice8_EndScene(device);
     ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr);
 
-    hr = IDirect3DDevice8_Present(device, NULL, NULL, NULL, NULL);
-    ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr);
     for (i = 0; i < 4; ++i)
     {
         color = getPixelColor(device, expected_colors[i].position.x, expected_colors[i].position.y);
@@ -5207,6 +5205,8 @@ static void test_3dc_formats(void)
                 expected_colors[i].amd, expected_colors[i].nvidia, color, i);
     }
 
+    hr = IDirect3DDevice8_Present(device, NULL, NULL, NULL, NULL);
+    ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr);
     IDirect3DTexture8_Release(ati2n_texture);
     IDirect3DTexture8_Release(ati1n_texture);
     refcount = IDirect3DDevice8_Release(device);




More information about the wine-cvs mailing list