mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Synchronize Rasterizer State before Clear (#1680)
This commit is contained in:
parent
500b48251c
commit
5561a3b95e
1 changed files with 6 additions and 1 deletions
|
@ -20,12 +20,17 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scissor affects clears aswell.
|
// Scissor and rasterizer discard also affect clears.
|
||||||
if (state.QueryModified(MethodOffset.ScissorState))
|
if (state.QueryModified(MethodOffset.ScissorState))
|
||||||
{
|
{
|
||||||
UpdateScissorState(state);
|
UpdateScissorState(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state.QueryModified(MethodOffset.RasterizeEnable))
|
||||||
|
{
|
||||||
|
UpdateRasterizerState(state);
|
||||||
|
}
|
||||||
|
|
||||||
int index = (argument >> 6) & 0xf;
|
int index = (argument >> 6) & 0xf;
|
||||||
|
|
||||||
UpdateRenderTargetState(state, useControl: false, singleUse: index);
|
UpdateRenderTargetState(state, useControl: false, singleUse: index);
|
||||||
|
|
Loading…
Reference in a new issue