Commit 05892c23 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

evr/tests: Skip tests if D3D9 is unusable.

parent 055e2c16
...@@ -3642,8 +3642,17 @@ done: ...@@ -3642,8 +3642,17 @@ done:
START_TEST(evr) START_TEST(evr)
{ {
IMFVideoPresenter *presenter; IMFVideoPresenter *presenter;
IDirect3D9 *d3d9;
HRESULT hr; HRESULT hr;
d3d9 = Direct3DCreate9(D3D_SDK_VERSION);
if (!d3d9)
{
skip("Failed to initialize D3D9. Skipping EVR tests.\n");
return;
}
IDirect3D9_Release(d3d9);
CoInitialize(NULL); CoInitialize(NULL);
if (FAILED(hr = MFCreateVideoPresenter(NULL, &IID_IDirect3DDevice9, &IID_IMFVideoPresenter, (void **)&presenter))) if (FAILED(hr = MFCreateVideoPresenter(NULL, &IID_IDirect3DDevice9, &IID_IMFVideoPresenter, (void **)&presenter)))
......
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