d3d11 demo: release target view with ID3D11RenderTargetView_Release() and not with ID3D11ShaderResourceView_Release()

This commit is contained in:
Vincent Torri 2018-03-14 10:14:17 +01:00
parent 30a5709e0a
commit 602ad7d6f9

View File

@ -290,7 +290,7 @@ int main(void)
ID3D11DeviceContext_ClearState(context); ID3D11DeviceContext_ClearState(context);
nk_d3d11_shutdown(); nk_d3d11_shutdown();
ID3D11ShaderResourceView_Release(rt_view); ID3D11RenderTargetView_Release(rt_view);
ID3D11DeviceContext_Release(context); ID3D11DeviceContext_Release(context);
ID3D11Device_Release(device); ID3D11Device_Release(device);
IDXGISwapChain_Release(swap_chain); IDXGISwapChain_Release(swap_chain);