Disable transparency in the window

This commit is contained in:
Thog 2020-02-06 16:12:44 +01:00
commit 6d04441cda

View file

@ -53,7 +53,7 @@ namespace Ryujinx.Ui
private Input.NpadController _primaryController; private Input.NpadController _primaryController;
public GLRenderer(Switch device) : public GLRenderer(Switch device) :
base (new GraphicsMode(), 3, 3, GraphicsContextFlags.ForwardCompatible) base (new GraphicsMode(new ColorFormat(24)), 3, 3, GraphicsContextFlags.ForwardCompatible)
{ {
WaitEvent = new ManualResetEvent(false); WaitEvent = new ManualResetEvent(false);
@ -249,8 +249,6 @@ namespace Ryujinx.Ui
{ {
_renderer.Initialize(); _renderer.Initialize();
GL.Disable(EnableCap.AlphaTest);
SwapBuffers(); SwapBuffers();
} }
@ -263,7 +261,6 @@ namespace Ryujinx.Ui
using (ScopedGLContext scopedGLContext = new ScopedGLContext(WindowInfo, GraphicsContext)) using (ScopedGLContext scopedGLContext = new ScopedGLContext(WindowInfo, GraphicsContext))
{ {
_ticks += _chrono.ElapsedTicks; _ticks += _chrono.ElapsedTicks;
_chrono.Restart(); _chrono.Restart();