mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Renderer: Change SetBlendState to accept a BlendingState
This decouples the state generation (from the emulated GPU) from the management of internal backend state.
This commit is contained in:
@ -1340,11 +1340,8 @@ void Renderer::SetDepthMode()
|
||||
StateTracker::GetInstance()->SetDepthStencilState(new_ds_state);
|
||||
}
|
||||
|
||||
void Renderer::SetBlendMode(bool force_update)
|
||||
void Renderer::SetBlendingState(const BlendingState& state)
|
||||
{
|
||||
BlendingState state;
|
||||
state.Generate(bpmem);
|
||||
|
||||
StateTracker::GetInstance()->SetBlendState(state);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user