diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index 416429bf7..5d0d19085 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -51,7 +51,7 @@ namespace Ryujinx.Ui private Input.NpadController _primaryController; public GLRenderer(Switch device) - : base (new GraphicsMode(new ColorFormat()), + : base (GetGraphicsMode(), 3, 3, GraphicsContextFlags.ForwardCompatible) { @@ -80,6 +80,16 @@ namespace Ryujinx.Ui this.Shown += Renderer_Shown; } + private static GraphicsMode GetGraphicsMode() + { + if (Environment.OSVersion.Platform == PlatformID.Unix) + { + return new GraphicsMode(new ColorFormat(24)); + } + + return new GraphicsMode(new ColorFormat()); + } + private void GLRenderer_ShuttingDown(object sender, EventArgs args) { _device.DisposeGpu();