1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

mfplat/tests: Skip tests that require d3d9 support.

This commit is contained in:
Nikolay Sivov 2024-01-30 10:11:43 +01:00 committed by Alexandre Julliard
parent 9373ec4c3c
commit e450bf42ab

View file

@ -7765,9 +7765,13 @@ static void test_MFCreateDXSurfaceBuffer(void)
return;
}
window = create_window();
d3d = Direct3DCreate9(D3D_SDK_VERSION);
ok(!!d3d, "Failed to create a D3D object.\n");
if (!d3d)
{
skip("Failed to create a D3D9 object, skipping tests.\n");
return;
}
window = create_window();
if (!(device = create_d3d9_device(d3d, window)))
{
skip("Failed to create a D3D device, skipping tests.\n");
@ -9124,9 +9128,13 @@ static void test_sample_allocator_d3d9(void)
if (!pMFCreateVideoSampleAllocatorEx)
return;
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");