Archived
1
0
Fork 0
forked from Mirror/Ryujinx

Synchronize Rasterizer State before Clear (#1680)

This commit is contained in:
riperiperi 2020-11-07 19:21:10 +00:00 committed by GitHub
parent 500b48251c
commit 5561a3b95e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,12 +20,17 @@ namespace Ryujinx.Graphics.Gpu.Engine
return;
}
// Scissor affects clears aswell.
// Scissor and rasterizer discard also affect clears.
if (state.QueryModified(MethodOffset.ScissorState))
{
UpdateScissorState(state);
}
if (state.QueryModified(MethodOffset.RasterizeEnable))
{
UpdateRasterizerState(state);
}
int index = (argument >> 6) & 0xf;
UpdateRenderTargetState(state, useControl: false, singleUse: index);