Commit c5d420b3 authored by Axel Davy's avatar Axel Davy Committed by Alexandre Julliard

d3d8/tests: Fix test_3dc_formats getPixelColor check.

parent 58083dfb
...@@ -5197,8 +5197,6 @@ static void test_3dc_formats(void) ...@@ -5197,8 +5197,6 @@ static void test_3dc_formats(void)
hr = IDirect3DDevice8_EndScene(device); hr = IDirect3DDevice8_EndScene(device);
ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr); 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) for (i = 0; i < 4; ++i)
{ {
color = getPixelColor(device, expected_colors[i].position.x, expected_colors[i].position.y); color = getPixelColor(device, expected_colors[i].position.x, expected_colors[i].position.y);
...@@ -5207,6 +5205,8 @@ static void test_3dc_formats(void) ...@@ -5207,6 +5205,8 @@ static void test_3dc_formats(void)
expected_colors[i].amd, expected_colors[i].nvidia, color, i); 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(ati2n_texture);
IDirect3DTexture8_Release(ati1n_texture); IDirect3DTexture8_Release(ati1n_texture);
refcount = IDirect3DDevice8_Release(device); refcount = IDirect3DDevice8_Release(device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment