DestroyContext() 공개 정적인 메소드

public static DestroyContext ( IntPtr dpy, ContextHandle context ) : void
dpy System.IntPtr
context ContextHandle
리턴 void
예제 #1
0
 private void Dispose(bool manuallyCalled)
 {
     if (!IsDisposed)
     {
         if (manuallyCalled)
         {
             IntPtr display = Display;
             if (IsCurrent)
             {
                 using (new XLock(display))
                 {
                     Glx.MakeCurrent(display, IntPtr.Zero, IntPtr.Zero);
                 }
             }
             using (new XLock(display))
             {
                 Glx.DestroyContext(display, Handle);
             }
         }
     }
     else
     {
         Debug.Print("[Warning] {0} leaked.", this.GetType().Name);
     }
     IsDisposed = true;
 }
예제 #2
0
 private void Dispose(bool manuallyCalled)
 {
     if (!this.IsDisposed && manuallyCalled)
     {
         IntPtr display = this.Display;
         if (this.IsCurrent)
         {
             using (new XLock(display))
                 Glx.MakeCurrent(display, IntPtr.Zero, IntPtr.Zero);
         }
         using (new XLock(display))
             Glx.DestroyContext(display, this.Handle);
     }
     this.IsDisposed = true;
 }
예제 #3
0
        private void Dispose(bool manuallyCalled)
        {
            if (!IsDisposed)
            {
                if (manuallyCalled)
                {
                    if (GraphicsContext.CurrentContext != null &&
                        ((IGraphicsContextInternal)GraphicsContext.CurrentContext).Context == Handle)
                    {
                        GraphicsContext.CurrentContext.MakeCurrent(null);
                    }

                    Glx.DestroyContext(currentWindow.Display, Handle);
                }
                else
                {
                    Debug.Print("[Warning] {0} leaked.", this.GetType().Name);
                }
                IsDisposed = true;
            }
        }
예제 #4
0
파일: Glx.cs 프로젝트: conankzhang/fez
 public static void DestroyContext(IntPtr dpy, ContextHandle context)
 {
     Glx.DestroyContext(dpy, context.Handle);
 }