From 4ec9793602e0e4500498c136cb2a0693f5b34f24 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 9 May 2024 23:11:24 -0400 Subject: [PATCH] Style --- src/Ryujinx.Graphics.OpenGL/Framebuffer.cs | 2 +- src/Ryujinx.Gtk3/UI/SPBOpenGLContext.cs | 6 ++---- src/Ryujinx/UI/Renderer/SPBOpenGLContext.cs | 6 ++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs b/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs index d458fcafc..1a0ecf66b 100644 --- a/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs +++ b/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs @@ -20,7 +20,7 @@ namespace Ryujinx.Graphics.OpenGL private int _colorsCount; private bool _dualSourceBlend; - private GL _api; + private readonly GL _api; public Framebuffer(GL api) { diff --git a/src/Ryujinx.Gtk3/UI/SPBOpenGLContext.cs b/src/Ryujinx.Gtk3/UI/SPBOpenGLContext.cs index 1ecc64c67..11c5f5be9 100644 --- a/src/Ryujinx.Gtk3/UI/SPBOpenGLContext.cs +++ b/src/Ryujinx.Gtk3/UI/SPBOpenGLContext.cs @@ -9,13 +9,11 @@ namespace Ryujinx.UI { class SPBOpenGLContext : IOpenGLContext { - public readonly GL Api; private readonly OpenGLContextBase _context; private readonly NativeWindowBase _window; - private SPBOpenGLContext(GL api, OpenGLContextBase context, NativeWindowBase window) + private SPBOpenGLContext(OpenGLContextBase context, NativeWindowBase window) { - Api = api; _context = context; _window = window; } @@ -45,7 +43,7 @@ namespace Ryujinx.UI context.MakeCurrent(null); - return new SPBOpenGLContext(api, context, window); + return new SPBOpenGLContext(context, window); } } } diff --git a/src/Ryujinx/UI/Renderer/SPBOpenGLContext.cs b/src/Ryujinx/UI/Renderer/SPBOpenGLContext.cs index 2f7c54849..0dc354ec6 100644 --- a/src/Ryujinx/UI/Renderer/SPBOpenGLContext.cs +++ b/src/Ryujinx/UI/Renderer/SPBOpenGLContext.cs @@ -9,13 +9,11 @@ namespace Ryujinx.Ava.UI.Renderer { class SPBOpenGLContext : IOpenGLContext { - private readonly GL _api; private readonly OpenGLContextBase _context; private readonly NativeWindowBase _window; - private SPBOpenGLContext(GL api, OpenGLContextBase context, NativeWindowBase window) + private SPBOpenGLContext(OpenGLContextBase context, NativeWindowBase window) { - _api = api; _context = context; _window = window; } @@ -45,7 +43,7 @@ namespace Ryujinx.Ava.UI.Renderer context.MakeCurrent(null); - return new SPBOpenGLContext(api, context, window); + return new SPBOpenGLContext(context, window); } } }