Fix XMAD shader instruction, gl_FrontFacing and enable face culling (#583)
* Fix XMAD shader instruction implementation * Fix gl_FrontFacing constant value * Enable face culling again * Fix typo
This commit is contained in:
parent
b126ea48c6
commit
9cbcbaa90c
4 changed files with 125 additions and 65 deletions
|
@ -159,25 +159,23 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||
Shader.SetExtraData(New.FlipX, New.FlipY, New.Instance);
|
||||
}
|
||||
|
||||
//Note: Uncomment SetFrontFace and SetCullFace when flipping issues are solved
|
||||
if (New.FrontFace != Old.FrontFace)
|
||||
{
|
||||
GL.FrontFace(OGLEnumConverter.GetFrontFace(New.FrontFace));
|
||||
}
|
||||
|
||||
//if (New.FrontFace != Old.FrontFace)
|
||||
//{
|
||||
// GL.FrontFace(OGLEnumConverter.GetFrontFace(New.FrontFace));
|
||||
//}
|
||||
if (New.CullFaceEnabled != Old.CullFaceEnabled)
|
||||
{
|
||||
Enable(EnableCap.CullFace, New.CullFaceEnabled);
|
||||
}
|
||||
|
||||
//if (New.CullFaceEnabled != Old.CullFaceEnabled)
|
||||
//{
|
||||
// Enable(EnableCap.CullFace, New.CullFaceEnabled);
|
||||
//}
|
||||
|
||||
//if (New.CullFaceEnabled)
|
||||
//{
|
||||
// if (New.CullFace != Old.CullFace)
|
||||
// {
|
||||
// GL.CullFace(OGLEnumConverter.GetCullFace(New.CullFace));
|
||||
// }
|
||||
//}
|
||||
if (New.CullFaceEnabled)
|
||||
{
|
||||
if (New.CullFace != Old.CullFace)
|
||||
{
|
||||
GL.CullFace(OGLEnumConverter.GetCullFace(New.CullFace));
|
||||
}
|
||||
}
|
||||
|
||||
if (New.DepthTestEnabled != Old.DepthTestEnabled)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue