mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-13 11:05:29 +00:00
Added GetCurrentContext()
This commit is contained in:
parent
5c16b522a3
commit
9bfa325620
|
@ -284,6 +284,9 @@ namespace OpenTK.Platform.X11
|
||||||
[DllImport(Library, EntryPoint = "glXDestroyContext")]
|
[DllImport(Library, EntryPoint = "glXDestroyContext")]
|
||||||
public static extern void DestroyContext(IntPtr dpy, IntPtr context);
|
public static extern void DestroyContext(IntPtr dpy, IntPtr context);
|
||||||
|
|
||||||
|
[DllImport(Library, EntryPoint = "glXGetCurrentContext")]
|
||||||
|
public static extern IntPtr GetCurrentContext();
|
||||||
|
|
||||||
[DllImport(Library, EntryPoint = "glXMakeCurrent")]
|
[DllImport(Library, EntryPoint = "glXMakeCurrent")]
|
||||||
public static extern bool MakeCurrent(IntPtr display, IntPtr drawable, IntPtr context);
|
public static extern bool MakeCurrent(IntPtr display, IntPtr drawable, IntPtr context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue