diff options
author | Anton Fedchin <anightik@gmail.com> | 2018-02-07 09:54:51 +0300 |
---|---|---|
committer | Anton Fedchin <anightik@gmail.com> | 2018-02-07 09:54:51 +0300 |
commit | 9dc9450184eae137d8100dccdcce579bcca86af7 (patch) | |
tree | e4dbfd2a71ff8c4d4442352979ae080b3ad05fd5 | |
parent | 5fdb25c275dd0b83fe665da82f80cd37ce63117c (diff) |
[guilib] CD3DBuffer: fixes save buffer state on resetting device
-rw-r--r-- | xbmc/guilib/D3DResource.cpp | 2 |
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; |