diff options
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/Renderer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs index c3d08309..cc8fa195 100644 --- a/Ryujinx.Graphics.OpenGL/Renderer.cs +++ b/Ryujinx.Graphics.OpenGL/Renderer.cs @@ -149,7 +149,7 @@ namespace Ryujinx.Graphics.OpenGL public void BackgroundContextAction(Action action) { - if (GraphicsContext.CurrentContext != null) + if (IOpenGLContext.HasContext()) { action(); // We have a context already - use that (assuming it is the main one). } @@ -159,7 +159,7 @@ namespace Ryujinx.Graphics.OpenGL } } - public void InitializeBackgroundContext(IGraphicsContext baseContext) + public void InitializeBackgroundContext(IOpenGLContext baseContext) { _window.InitializeBackgroundContext(baseContext); } |
