Refactor Cull Mode to only send face.

This commit is contained in:
sunshineinabox 2024-09-09 21:50:18 -07:00
parent 2fd093d4b4
commit 5a391f38fd
11 changed files with 27 additions and 18 deletions

View file

@ -915,11 +915,11 @@ namespace Ryujinx.Graphics.OpenGL
_depthTestEnable = depthTest.TestEnable;
}
public void SetFaceCulling(bool enable, Face face)
public void SetFaceCulling(Face face)
{
_cullEnable = enable;
_cullEnable = face != Face.None;
if (!enable)
if (!_cullEnable)
{
GL.Disable(EnableCap.CullFace);
return;