Axel Davy : d3d8/tests: Fix volume_dxt5_test getPixelColor check.
Module: wine Branch: master Commit: 58083dfb12655ee0e23fc0d2cc248db1d647f220 URL: http://source.winehq.org/git/wine.git/?a=commit;h=58083dfb12655ee0e23fc0d2cc... Author: Axel Davy <axel.davy(a)ens.fr> Date: Sun Jan 11 11:29:13 2015 +0100 d3d8/tests: Fix volume_dxt5_test getPixelColor check. getPixelColor should be called before Present, because the device swapchain was created with discard mode. --- 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 a8a771e..68c3319 100644 --- a/dlls/d3d8/tests/visual.c +++ b/dlls/d3d8/tests/visual.c @@ -4507,8 +4507,6 @@ static void volume_dxt5_test(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, 80 + 160 * i, 240); @@ -4516,6 +4514,8 @@ static void volume_dxt5_test(void) "Expected color 0x%08x, got 0x%08x, case %u.\n", expected_colors[i], color, i); } + hr = IDirect3DDevice8_Present(device, NULL, NULL, NULL, NULL); + ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); IDirect3DVolumeTexture8_Release(texture); refcount = IDirect3DDevice8_Release(device); ok(!refcount, "Device has %u references left.\n", refcount);
participants (1)
-
Alexandre Julliard