This commit is contained in:
Isaac Marovitz 2024-05-09 23:11:24 -04:00
parent bab7457b99
commit 4ec9793602
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
3 changed files with 5 additions and 9 deletions

View file

@ -20,7 +20,7 @@ namespace Ryujinx.Graphics.OpenGL
private int _colorsCount; private int _colorsCount;
private bool _dualSourceBlend; private bool _dualSourceBlend;
private GL _api; private readonly GL _api;
public Framebuffer(GL api) public Framebuffer(GL api)
{ {

View file

@ -9,13 +9,11 @@ namespace Ryujinx.UI
{ {
class SPBOpenGLContext : IOpenGLContext class SPBOpenGLContext : IOpenGLContext
{ {
public readonly GL Api;
private readonly OpenGLContextBase _context; private readonly OpenGLContextBase _context;
private readonly NativeWindowBase _window; private readonly NativeWindowBase _window;
private SPBOpenGLContext(GL api, OpenGLContextBase context, NativeWindowBase window) private SPBOpenGLContext(OpenGLContextBase context, NativeWindowBase window)
{ {
Api = api;
_context = context; _context = context;
_window = window; _window = window;
} }
@ -45,7 +43,7 @@ namespace Ryujinx.UI
context.MakeCurrent(null); context.MakeCurrent(null);
return new SPBOpenGLContext(api, context, window); return new SPBOpenGLContext(context, window);
} }
} }
} }

View file

@ -9,13 +9,11 @@ namespace Ryujinx.Ava.UI.Renderer
{ {
class SPBOpenGLContext : IOpenGLContext class SPBOpenGLContext : IOpenGLContext
{ {
private readonly GL _api;
private readonly OpenGLContextBase _context; private readonly OpenGLContextBase _context;
private readonly NativeWindowBase _window; private readonly NativeWindowBase _window;
private SPBOpenGLContext(GL api, OpenGLContextBase context, NativeWindowBase window) private SPBOpenGLContext(OpenGLContextBase context, NativeWindowBase window)
{ {
_api = api;
_context = context; _context = context;
_window = window; _window = window;
} }
@ -45,7 +43,7 @@ namespace Ryujinx.Ava.UI.Renderer
context.MakeCurrent(null); context.MakeCurrent(null);
return new SPBOpenGLContext(api, context, window); return new SPBOpenGLContext(context, window);
} }
} }
} }