aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/IOpenGLContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/IOpenGLContext.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/IOpenGLContext.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/Ryujinx.Graphics.OpenGL/IOpenGLContext.cs b/Ryujinx.Graphics.OpenGL/IOpenGLContext.cs
deleted file mode 100644
index b1f6d72d..00000000
--- a/Ryujinx.Graphics.OpenGL/IOpenGLContext.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Ryujinx.Graphics.OpenGL.Helper;
-using System;
-
-namespace Ryujinx.Graphics.OpenGL
-{
- public interface IOpenGLContext : IDisposable
- {
- void MakeCurrent();
-
- // TODO: Support more APIs per platform.
- static bool HasContext()
- {
- if (OperatingSystem.IsWindows())
- {
- return WGLHelper.GetCurrentContext() != IntPtr.Zero;
- }
- else if (OperatingSystem.IsLinux())
- {
- return GLXHelper.GetCurrentContext() != IntPtr.Zero;
- }
- else
- {
- return false;
- }
- }
- }
-}