Commit 2dd3a205 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dxva2/tests: Skip tests if D3D9 is unusable.

parent 4623c411
...@@ -695,6 +695,16 @@ done: ...@@ -695,6 +695,16 @@ done:
START_TEST(dxva2) START_TEST(dxva2)
{ {
IDirect3D9 *d3d;
d3d = Direct3DCreate9(D3D_SDK_VERSION);
if (!d3d)
{
skip("Failed to initialize D3D9. Skipping tests.\n");
return;
}
IDirect3D9_Release(d3d);
test_device_manager(); test_device_manager();
test_video_processor(); test_video_processor();
test_progressive_device(); test_progressive_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