mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 10:05:32 +00:00
Possible InvalidCastException fix.
This commit is contained in:
parent
ecf6365d45
commit
5c16b522a3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue