mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-05 19:46:15 +01:00
[d3d11] Change state restoring behaviour in SwapDeviceContextState
This commit is contained in:
parent
c7d9201303
commit
7685a86494
@ -622,6 +622,9 @@ 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