dxva2/tests: Skip tests if D3D9 is unusable.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2023-11-19 15:07:53 +01:00 committed by Alexandre Julliard
parent 4623c41100
commit 2dd3a20520

View file

@ -695,6 +695,16 @@ done:
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_video_processor();
test_progressive_device();