d3d11 demo: release target view with ID3D11RenderTargetView_Release() and not with ID3D11ShaderResourceView_Release()
This commit is contained in:
parent
30a5709e0a
commit
602ad7d6f9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user