mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:35:32 +00:00
Added some debugging information to context creation.
This commit is contained in:
parent
4a5b8e81d8
commit
c08d2785ce
|
@ -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,
|
||||
|
||||
|
|
Loading…
Reference in a new issue