Added some debugging information to context creation.

This commit is contained in:
the_fiddler 2008-01-15 10:36:47 +00:00
parent 4a5b8e81d8
commit c08d2785ce

View file

@ -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,