diff options
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Helper/WGLHelper.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Helper/WGLHelper.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Helper/WGLHelper.cs b/Ryujinx.Graphics.OpenGL/Helper/WGLHelper.cs new file mode 100644 index 00000000..b37134eb --- /dev/null +++ b/Ryujinx.Graphics.OpenGL/Helper/WGLHelper.cs @@ -0,0 +1,15 @@ +using System; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + +namespace Ryujinx.Graphics.OpenGL.Helper +{ + [SupportedOSPlatform("windows")] + internal static class WGLHelper + { + private const string LibraryName = "OPENGL32.DLL"; + + [DllImport(LibraryName, EntryPoint = "wglGetCurrentContext")] + public extern static IntPtr GetCurrentContext(); + } +} |