/// <summary> /// Makes the current. /// </summary> /// <param name="xid">The xid.</param> /// <exception cref="OpenGlException">glXMakeContextCurrent failed</exception> public void MakeCurrent(IntPtr xid) { if (!Glx.MakeContextCurrent(_x11.Display, xid, xid, Handle)) { throw new OpenGlException("glXMakeContextCurrent failed "); } }
/// <summary> /// Clears the context. /// </summary> public void ClearContext() => Glx.MakeContextCurrent(_x11.Display, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);