From dc151f3929e77c39af454d15184bc9cb73efe367 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 10:36:47 +0000 Subject: [PATCH] Added some debugging information to context creation. --- Source/OpenTK/Platform/X11/X11GLNative.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index a68c7885..908ad78c 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -357,6 +357,9 @@ namespace OpenTK.Platform.X11 glContext = new GLContext(mode, window); (glContext as IGLContextCreationHack).SelectDisplayMode(mode, window); + if (glContext == null) + throw new ApplicationException("Could not create GLContext"); + Debug.Print("Created GLContext"); window.VisualInfo = ((glContext as IGLContextInternal).Info as X11.WindowInfo).VisualInfo; //window.VisualInfo = Marshal.PtrToStructure(Glx.ChooseVisual(window.Display, window.Screen,