Module: wine Branch: master Commit: f65f951cbab91c407dd97f2a7b983f72734f0a03 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f65f951cbab91c407dd97f2a7b...
Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Nov 24 00:18:57 2013 +0100
d3d8/tests: Read the result before swapping in volume_v16u16_test.
---
dlls/d3d8/tests/visual.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c index d963a73..1913e6e 100644 --- a/dlls/d3d8/tests/visual.c +++ b/dlls/d3d8/tests/visual.c @@ -4283,9 +4283,6 @@ static void volume_v16u16_test(IDirect3DDevice8 *device) 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); - color = getPixelColor(device, 120, 160); ok (color_match(color, 0x000080ff, 2), "Expected color 0x000080ff, got 0x%08x, V16U16 input -32768, 0.\n", color); @@ -4299,6 +4296,9 @@ static void volume_v16u16_test(IDirect3DDevice8 *device) ok (color_match(color, 0x0040c0ff, 2), "Expected color 0x0040c0ff, got 0x%08x, V16U16 input -16384, 16384.\n", color);
+ hr = IDirect3DDevice8_Present(device, NULL, NULL, NULL, NULL); + ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); + IDirect3DVolumeTexture8_Release(texture); }