d3d9: Fix a test that fails with broken drivers.
This commit is contained in:
parent
60b7f641b9
commit
74bb01f4a9
|
@ -2014,7 +2014,9 @@ static void test_display_formats()
|
||||||
hr = IDirect3D9_CheckDeviceType(d3d9, Adapter, DeviceType, x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, FALSE);
|
hr = IDirect3D9_CheckDeviceType(d3d9, Adapter, DeviceType, x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, FALSE);
|
||||||
|
|
||||||
if(x8r8g8b8_format_list[i].shouldPass)
|
if(x8r8g8b8_format_list[i].shouldPass)
|
||||||
ok(hr == D3D_OK, "format %d %d didn't pass with hr=%#08x\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, hr);
|
ok(hr == D3D_OK ||
|
||||||
|
broken(hr == D3DERR_NOTAVAILABLE),
|
||||||
|
"format %d %d didn't pass with hr=%#08x\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, hr);
|
||||||
else
|
else
|
||||||
ok(hr != D3D_OK, "format %d %d didn't pass while it was expected to\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat);
|
ok(hr != D3D_OK, "format %d %d didn't pass while it was expected to\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue