Fixed a possible cast problem.

This commit is contained in:
the_fiddler 2008-01-15 12:48:03 +00:00
parent 069d3c40bc
commit 8e991b93e9

View file

@ -360,7 +360,7 @@ namespace OpenTK.Platform.X11
if (glContext == null) if (glContext == null)
throw new ApplicationException("Could not create GLContext"); throw new ApplicationException("Could not create GLContext");
Debug.Print("Created GLContext"); Debug.Print("Created GLContext");
window.VisualInfo = ((X11.WindowInfo)((X11GLContext)glContext).Info).VisualInfo; window.VisualInfo = ((X11.WindowInfo)((IGLContextInternal)glContext).Info).VisualInfo;
//window.VisualInfo = Marshal.PtrToStructure(Glx.ChooseVisual(window.Display, window.Screen, //window.VisualInfo = Marshal.PtrToStructure(Glx.ChooseVisual(window.Display, window.Screen,
// Create a window on this display using the visual above // Create a window on this display using the visual above