Commit df522262 authored by Martin Finkel's avatar Martin Finkel
Browse files

D3D11: set objects to NULL

parent 340fe66f
......@@ -252,6 +252,7 @@ void RenderAPI_D3D11::Update(UINT width, UINT height)
}
sharedResource->Release();
sharedResource = NULL;
ID3D11Device1* d3d11VLC1;
hr = m_d3deviceVLC->QueryInterface(&d3d11VLC1);
......@@ -272,6 +273,7 @@ void RenderAPI_D3D11::Update(UINT width, UINT height)
}
d3d11VLC1->Release();
d3d11VLC1 = NULL;
D3D11_SHADER_RESOURCE_VIEW_DESC resviewDesc;
ZeroMemory(&resviewDesc, sizeof(D3D11_SHADER_RESOURCE_VIEW_DESC));
......
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