Possible fix for X11GLContext crash.

This commit is contained in:
the_fiddler 2008-01-15 10:59:36 +00:00
parent 72d72611d1
commit 15956016b4

View file

@ -87,8 +87,8 @@ namespace OpenTK.Platform.X11
visualAttributes.Add((int)Glx.Enums.GLXAttribute.DOUBLEBUFFER);
visualAttributes.Add((int)0);
}
visual = Glx.ChooseVisual(windowInfo.Display, windowInfo.Screen, visualAttributes.ToArray());
visual = Glx.ChooseVisual(((X11.WindowInfo)info).Display, ((X11.WindowInfo)info).Screen, visualAttributes.ToArray());
if (visual == IntPtr.Zero)
return false;
else