Commit 055e2c16 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

evr/presenter: Handle failure to initialize D3D9.

parent f27dd774
......@@ -2119,6 +2119,11 @@ static HRESULT video_presenter_init_d3d(struct video_presenter *presenter)
HRESULT hr;
d3d = Direct3DCreate9(D3D_SDK_VERSION);
if (!d3d)
{
WARN("Failed to initialize d3d9.\n");
return E_FAIL;
}
present_params.BackBufferCount = 1;
present_params.SwapEffect = D3DSWAPEFFECT_COPY;
......
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