From c96092f83130e79561d7ed4a1a26f6d4fab9005d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Sun, 24 Nov 2013 00:18:56 +0100 Subject: [PATCH] d3d9/tests: Read the result before swapping in volume_v16u16_test. --- 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 7f750bbf838..522ac50f877 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -14759,9 +14759,6 @@ static void volume_v16u16_test(IDirect3DDevice9 *device) hr = IDirect3DDevice9_EndScene(device); ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr); - hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); - ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); - color = getPixelColor(device, 120, 160); ok (color_match(color, 0x000080ff, 2), "Expected color 0x000080ff, got 0x%08x, V16U16 input -32768, 0.\n", color); @@ -14775,6 +14772,9 @@ static void volume_v16u16_test(IDirect3DDevice9 *device) ok (color_match(color, 0x0040c0ff, 2), "Expected color 0x0040c0ff, got 0x%08x, V16U16 input -16384, 16384.\n", color); + hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); + ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); + IDirect3DVolumeTexture9_Release(texture); }