Example #1
0
        protected sealed override void DestroyNativeResources()
        {
            if (glEvas != IntPtr.Zero)
            {
                // destroy the context
                Evas.evas_gl_context_destroy(glEvas, glContext);
                glContext = IntPtr.Zero;

                // release the unmanaged memory
                Marshal.FreeHGlobal(glConfigPtr);
                glConfigPtr = IntPtr.Zero;

                // destroy the EFL wrapper
                Evas.evas_gl_free(glEvas);
                glEvas = IntPtr.Zero;
            }
        }
Example #2
0
        private void DestroyGL()
        {
            if (glEvas != IntPtr.Zero)
            {
                // destroy the context
                Evas.evas_gl_context_destroy(glEvas, glContext);
                glContext = IntPtr.Zero;

                // release the unmanaged memory
                Marshal.FreeHGlobal(glConfigPtr);
                glConfigPtr = IntPtr.Zero;

                // destroy the EFL wrapper
                Evas.evas_gl_free(glEvas);
                glEvas = IntPtr.Zero;
            }
        }