Possible InvalidCastException fix.

This commit is contained in:
the_fiddler 2008-01-15 12:32:38 +00:00
parent ecf6365d45
commit 5c16b522a3

View file

@ -89,7 +89,7 @@ namespace OpenTK.Platform.X11
}
windowInfo.CopyInfoFrom(info);
visual = Glx.ChooseVisual(((X11.WindowInfo)info).Display, ((X11.WindowInfo)info).Screen, visualAttributes.ToArray());
visual = Glx.ChooseVisual(windowInfo.Display, windowInfo.Screen, visualAttributes.ToArray());
if (visual == IntPtr.Zero)
return false;
else