mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-07 16:33:05 +00:00
Style
This commit is contained in:
parent
bab7457b99
commit
4ec9793602
3 changed files with 5 additions and 9 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue