From 8e991b93e9d18ecc0a485708fa9d1aa46acc3f4d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 12:48:03 +0000 Subject: [PATCH] Fixed a possible cast problem. --- Source/OpenTK/Platform/X11/X11GLNative.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index f0f3b592..70188846 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -360,7 +360,7 @@ namespace OpenTK.Platform.X11 if (glContext == null) throw new ApplicationException("Could not create 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, // Create a window on this display using the visual above