Commit 4125fa62 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9/tests: Check ColorFill() return codes in color_fill_test() (LLVM/Clang).

parent ebf66c10
......@@ -654,6 +654,7 @@ static void color_fill_test(IDirect3DDevice9 *device)
{
fill_color = 0x112233;
hr = IDirect3DDevice9_ColorFill(device, backbuffer, NULL, fill_color);
ok(SUCCEEDED(hr), "Color fill failed, hr %#x.\n", hr);
color = getPixelColor(device, 0, 0);
ok(color == fill_color, "Expected color %08x, got %08x\n", fill_color, color);
......@@ -668,6 +669,7 @@ static void color_fill_test(IDirect3DDevice9 *device)
{
fill_color = 0x445566;
hr = IDirect3DDevice9_ColorFill(device, rt_surface, NULL, fill_color);
ok(SUCCEEDED(hr), "Color fill failed, hr %#x.\n", hr);
color = getPixelColorFromSurface(rt_surface, 0, 0);
ok(color == fill_color, "Expected color %08x, got %08x\n", fill_color, color);
......@@ -683,6 +685,7 @@ static void color_fill_test(IDirect3DDevice9 *device)
{
fill_color = 0x778899;
hr = IDirect3DDevice9_ColorFill(device, offscreen_surface, NULL, fill_color);
ok(SUCCEEDED(hr), "Color fill failed, hr %#x.\n", hr);
color = getPixelColorFromSurface(offscreen_surface, 0, 0);
ok(color == fill_color, "Expected color %08x, got %08x\n", fill_color, color);
......
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