mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 11:35:40 +00:00
Disable front facing and face culling to avoid regression (#226)
* Disable tests for framebuffer blitting
This commit is contained in:
parent
97ca974213
commit
0bec547b9d
|
@ -239,7 +239,19 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
{
|
{
|
||||||
EnsureInitialized();
|
EnsureInitialized();
|
||||||
|
|
||||||
bool AlphaBlendEnable = GL.GetInteger(GetPName.Blend) != 0;
|
//bool CullFaceEnable = GL.IsEnabled(EnableCap.CullFace);
|
||||||
|
|
||||||
|
bool DepthTestEnable = GL.IsEnabled(EnableCap.DepthTest);
|
||||||
|
|
||||||
|
bool StencilTestEnable = GL.IsEnabled(EnableCap.StencilTest);
|
||||||
|
|
||||||
|
bool AlphaBlendEnable = GL.IsEnabled(EnableCap.Blend);
|
||||||
|
|
||||||
|
//GL.Disable(EnableCap.CullFace);
|
||||||
|
|
||||||
|
GL.Disable(EnableCap.DepthTest);
|
||||||
|
|
||||||
|
GL.Disable(EnableCap.StencilTest);
|
||||||
|
|
||||||
GL.Disable(EnableCap.Blend);
|
GL.Disable(EnableCap.Blend);
|
||||||
|
|
||||||
|
@ -268,6 +280,21 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
GL.UseProgram(CurrentProgram);
|
GL.UseProgram(CurrentProgram);
|
||||||
|
|
||||||
|
//if (CullFaceEnable)
|
||||||
|
//{
|
||||||
|
// GL.Enable(EnableCap.CullFace);
|
||||||
|
//}
|
||||||
|
|
||||||
|
if (DepthTestEnable)
|
||||||
|
{
|
||||||
|
GL.Enable(EnableCap.DepthTest);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StencilTestEnable)
|
||||||
|
{
|
||||||
|
GL.Enable(EnableCap.StencilTest);
|
||||||
|
}
|
||||||
|
|
||||||
if (AlphaBlendEnable)
|
if (AlphaBlendEnable)
|
||||||
{
|
{
|
||||||
GL.Enable(EnableCap.Blend);
|
GL.Enable(EnableCap.Blend);
|
||||||
|
|
|
@ -79,8 +79,9 @@ namespace Ryujinx.HLE.Gpu.Engines
|
||||||
|
|
||||||
Gpu.Renderer.Shader.BindProgram();
|
Gpu.Renderer.Shader.BindProgram();
|
||||||
|
|
||||||
SetFrontFace();
|
//Note: Uncomment SetFrontFace SetCullFace when flipping issues are solved
|
||||||
SetCullFace();
|
//SetFrontFace();
|
||||||
|
//SetCullFace();
|
||||||
SetDepth();
|
SetDepth();
|
||||||
SetStencil();
|
SetStencil();
|
||||||
SetAlphaBlending();
|
SetAlphaBlending();
|
||||||
|
|
Loading…
Reference in a new issue