mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-13 16:08:50 +01:00
[d3d11] Change state restoring behaviour in SwapDeviceContextState
This commit is contained in:
parent
c7d9201303
commit
7685a86494
@ -621,7 +621,10 @@ namespace dxvk {
|
||||
|
||||
if (!pState)
|
||||
return;
|
||||
|
||||
|
||||
// Reset all state affected by the current context state
|
||||
ResetCommandListState();
|
||||
|
||||
Com<D3D11DeviceContextState> oldState = std::move(m_stateObject);
|
||||
Com<D3D11DeviceContextState> newState = static_cast<D3D11DeviceContextState*>(pState);
|
||||
|
||||
@ -636,6 +639,7 @@ namespace dxvk {
|
||||
oldState->SetState(m_state);
|
||||
newState->GetState(m_state);
|
||||
|
||||
// Restore all state affected by the new context state
|
||||
RestoreCommandListState();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user