mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[d3d11] Store D3D11DeviceContextState as private ref
Avoids a circular dependency
This commit is contained in:
parent
a69c65265a
commit
000a647c56
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user