mfreadwrite/tests: Skip tests if D3D9 is unusable.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
7748c76e35
commit
dcd8551142
1 changed files with 6 additions and 2 deletions
|
@ -1374,9 +1374,13 @@ static void test_reader_d3d9(void)
|
|||
UINT token;
|
||||
ULONG refcount;
|
||||
|
||||
window = create_window();
|
||||
d3d9 = Direct3DCreate9(D3D_SDK_VERSION);
|
||||
ok(!!d3d9, "Failed to create a D3D9 object.\n");
|
||||
if (!d3d9)
|
||||
{
|
||||
skip("Failed to create a D3D9 object, skipping tests.\n");
|
||||
return;
|
||||
}
|
||||
window = create_window();
|
||||
if (!(d3d9_device = create_d3d9_device(d3d9, window)))
|
||||
{
|
||||
skip("Failed to create a D3D9 device, skipping tests.\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue