From 9bfa3256205db83a3cd4b81d2eb21b9a93ef9071 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 12:46:47 +0000 Subject: [PATCH] Added GetCurrentContext() --- Source/OpenTK/Platform/X11/Glx.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/OpenTK/Platform/X11/Glx.cs b/Source/OpenTK/Platform/X11/Glx.cs index 5c7a16d3..db7a739b 100644 --- a/Source/OpenTK/Platform/X11/Glx.cs +++ b/Source/OpenTK/Platform/X11/Glx.cs @@ -284,6 +284,9 @@ namespace OpenTK.Platform.X11 [DllImport(Library, EntryPoint = "glXDestroyContext")] public static extern void DestroyContext(IntPtr dpy, IntPtr context); + [DllImport(Library, EntryPoint = "glXGetCurrentContext")] + public static extern IntPtr GetCurrentContext(); + [DllImport(Library, EntryPoint = "glXMakeCurrent")] public static extern bool MakeCurrent(IntPtr display, IntPtr drawable, IntPtr context);