aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Fedchin <anightik@gmail.com>2018-02-07 09:54:51 +0300
committerAnton Fedchin <anightik@gmail.com>2018-02-07 09:54:51 +0300
commit9dc9450184eae137d8100dccdcce579bcca86af7 (patch)
treee4dbfd2a71ff8c4d4442352979ae080b3ad05fd5
parent5fdb25c275dd0b83fe665da82f80cd37ce63117c (diff)
[guilib] CD3DBuffer: fixes save buffer state on resetting device
-rw-r--r--xbmc/guilib/D3DResource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/guilib/D3DResource.cpp b/xbmc/guilib/D3DResource.cpp
index 7035f94c4f..1377a591b1 100644
--- a/xbmc/guilib/D3DResource.cpp
+++ b/xbmc/guilib/D3DResource.cpp
@@ -876,7 +876,7 @@ void CD3DBuffer::OnDestroyDevice(bool fatal)
}
ComPtr<ID3D11Device> pDevice = DX::DeviceResources::Get()->GetD3DDevice();
- ComPtr<ID3D11DeviceContext> pContext = DX::DeviceResources::Get()->GetD3DContext();
+ ComPtr<ID3D11DeviceContext> pContext = DX::DeviceResources::Get()->GetImmediateContext();
if (!pDevice || !pContext || !m_buffer)
return;