From 9d840e596971c5789394a70e48355dd54a34322e Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 15 Jun 2014 14:30:40 +0200 Subject: [PATCH] [X11] Added glXQueryVersion DllImport. --- Source/OpenTK/Platform/X11/Bindings/Glx.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/X11/Bindings/Glx.cs b/Source/OpenTK/Platform/X11/Bindings/Glx.cs index f6b5bb68..aa03e91d 100644 --- a/Source/OpenTK/Platform/X11/Bindings/Glx.cs +++ b/Source/OpenTK/Platform/X11/Bindings/Glx.cs @@ -344,9 +344,9 @@ namespace OpenTK.Platform.X11 [DllImport(Library, EntryPoint = "glXQueryDrawable")] public static extern ErrorCode QueryDrawable(IntPtr dpy, IntPtr drawable, GLXAttribute attribute, out int value); - + [DllImport(Library, EntryPoint = "glXQueryExtension")] - public static extern bool QueryExtension(IntPtr dpy, ref int errorBase, ref int eventBase); + public static extern bool QueryExtension(IntPtr dpy, out int errorBase, out int eventBase); [DllImport(Library, EntryPoint = "glXQueryExtensionsString")] static extern IntPtr QueryExtensionsStringInternal(IntPtr dpy, int screen); @@ -356,6 +356,9 @@ namespace OpenTK.Platform.X11 return Marshal.PtrToStringAnsi(QueryExtensionsStringInternal(dpy, screen)); } + [DllImport(Library, EntryPoint = "glXQueryVersion")] + public static extern bool QueryVersion(IntPtr dpy, out int major, out int minor); + [DllImport(Library, EntryPoint = "glXCreateContext")] public static extern IntPtr CreateContext(IntPtr dpy, IntPtr vis, IntPtr shareList, bool direct);