mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoCommon: Add helpers for generating common render states
This commit is contained in:
@ -455,11 +455,11 @@ void Renderer::ClearScreen(const EFBRectangle& rc, bool color_enable, bool alpha
|
||||
StateTracker::GetInstance()->SetPendingRebind();
|
||||
|
||||
// Mask away the appropriate colors and use a shader
|
||||
BlendingState blend_state = Util::GetNoBlendingBlendState();
|
||||
BlendingState blend_state = RenderState::GetNoBlendingBlendState();
|
||||
blend_state.colorupdate = color_enable;
|
||||
blend_state.alphaupdate = alpha_enable;
|
||||
|
||||
DepthState depth_state = Util::GetNoDepthTestingDepthStencilState();
|
||||
DepthState depth_state = RenderState::GetNoDepthTestingDepthStencilState();
|
||||
depth_state.testenable = z_enable;
|
||||
depth_state.updateenable = z_enable;
|
||||
depth_state.func = ZMode::ALWAYS;
|
||||
|
Reference in New Issue
Block a user