Example #1
0
        public static void DeleteContext(ContextHandle context)
        {
            if (_contexts.ContainsKey(context.HDC))
            {
                _contexts.Remove(context.HDC);
            }

            if (context != ContextHandle.Zero)
            {
                Win32Helper.DeleteContext(context.Handle);
            }

            if (_contexts.Count == 0)
            {
                GLFunc.Dispose();
            }
        }