[d3d11] Store D3D11DeviceContextState as private ref

Avoids a circular dependency
This commit is contained in:
Joshua Ashton 2022-09-16 10:08:40 +00:00 committed by Philip Rebohle
parent a69c65265a
commit 000a647c56
2 changed files with 4 additions and 3 deletions

View File

@ -743,8 +743,8 @@ namespace dxvk {
// Reset all state affected by the current context state
ResetCommandListState();
Com<D3D11DeviceContextState> oldState = std::move(m_stateObject);
Com<D3D11DeviceContextState> newState = static_cast<D3D11DeviceContextState*>(pState);
Com<D3D11DeviceContextState, false> oldState = std::move(m_stateObject);
Com<D3D11DeviceContextState, false> newState = static_cast<D3D11DeviceContextState*>(pState);
if (oldState == nullptr)
oldState = new D3D11DeviceContextState(m_parent);

View File

@ -101,7 +101,8 @@ namespace dxvk {
D3D10Multithread m_multithread;
D3D11VideoContext m_videoContext;
Com<D3D11DeviceContextState> m_stateObject;
Com<D3D11DeviceContextState, false> m_stateObject;
HRESULT MapBuffer(
D3D11Buffer* pResource,