IntPtr GetVisualInfo(IntPtr display) { try { int[] attributes = AttributeList.ToArray(); return(glXChooseVisual(display, Screen.Number, attributes)); } catch (DllNotFoundException e) { throw new DllNotFoundException("OpenGL dll not found!", e); } catch (EntryPointNotFoundException enf) { throw new EntryPointNotFoundException("Glx entry point not found!", enf); } }