From 0933332c73b29ebace1299c266ebd1a051b94041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Thu, 27 Aug 2015 23:05:01 +0200 Subject: [PATCH] d3d9/tests: Fix backbuffer read vs flip in test_vertex_blending. --- dlls/d3d9/tests/visual.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 07960133ca9..d49d3b2abfe 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -19263,9 +19263,6 @@ static void test_vertex_blending(void) hr = IDirect3DDevice9_EndScene(device); ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr); - hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); - ok(hr == D3D_OK, "IDirect3DDevice9_Present failed with %08x\n", hr); - point = tests[i].quad_points; while (point->x != -1 && point->y != -1) { @@ -19281,6 +19278,9 @@ static void test_vertex_blending(void) ok(color_match(color, 0x00000000, 1), "Unexpected quad at %dx%d.\n", point->x, point->y); ++point; } + + hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); + ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); } refcount = IDirect3DDevice9_Release(device);