Also apply enable cap to all viewports when geometry shaders are disabled
This commit is contained in:
parent
cfec381073
commit
de35770773
1 changed files with 9 additions and 1 deletions
|
@ -282,7 +282,15 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||
{
|
||||
if (New.ScissorTestEnabled[Index])
|
||||
{
|
||||
GL.Enable(IndexedEnableCap.ScissorTest, Index);
|
||||
// If there is only 1 scissor test geometry shaders are disables so the scissor test applies to all viewports
|
||||
if (New.ScissorTestCount == 1)
|
||||
{
|
||||
GL.Enable(EnableCap.ScissorTest);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL.Enable(IndexedEnableCap.ScissorTest, Index);
|
||||
}
|
||||
forceUpdate = true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue