// Disposer
        internal virtual void Dispose()
        {
            // Not already disposed?
            if (!isdisposed)
            {
                // Clean up

                // Unregister resource
                graphics.UnregisterResource(this);

                // Done
                graphics   = null;
                isdisposed = true;
            }
        }
Example #2
0
        // Disposer
        public void Dispose()
        {
            // Not already disposed?
            if (!isdisposed)
            {
                // Clean up
                UnloadResource();

                // Unregister as resource
                device.UnregisterResource(this);

                // Done
                device     = null;
                isdisposed = true;
            }
        }