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
|
@ -281,8 +281,16 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
if (New.ScissorTestEnabled[Index] != Old.ScissorTestEnabled[Index])
|
if (New.ScissorTestEnabled[Index] != Old.ScissorTestEnabled[Index])
|
||||||
{
|
{
|
||||||
if (New.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);
|
GL.Enable(IndexedEnableCap.ScissorTest, Index);
|
||||||
|
}
|
||||||
forceUpdate = true;
|
forceUpdate = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue