public ContextRef CreateGLContext(int majorVersion, int minorVersion, bool forwardCompatible) { var gl = new IGL_TK(majorVersion, minorVersion, forwardCompatible); var ret = new ContextRef { GL = gl }; return(ret); }
// Note: In order to work around bugs in OpenTK which sometimes do things to a context without making that context active first... // we are going to push and pop the context before doing stuff public GLControlWrapper(IGL_TK owner) : base(GraphicsMode.Default, 2, 0, GraphicsContextFlags.Default) { _owner = owner; _glControl = this; }