Also apply enable cap to all viewports when geometry shaders are disabled

This commit is contained in:
Andy Adshead 2019-01-05 02:33:10 +00:00
commit de35770773

View file

@ -281,8 +281,16 @@ namespace Ryujinx.Graphics.Gal.OpenGL
if (New.ScissorTestEnabled[Index] != Old.ScissorTestEnabled[Index])
{
if (New.ScissorTestEnabled[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