Commit 59a0e3d1 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

d3d11: Remove useless NULL check (Coverity).

parent eb58fef6
......@@ -342,8 +342,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T
return S_OK;
cleanup:
if (device)
ID3D11Device_Release(device);
ID3D11Device_Release(device);
if (obtained_feature_level)
*obtained_feature_level = 0;
if (immediate_context)
......
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