protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         handle.Dispose();
         renderer?.Dispose();
         textureSet?.Dispose();
         disposed = true;
     }
 }
Beispiel #2
0
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            image?.Dispose();
            renderer?.Dispose();
            textureSet?.Dispose();

            base.Dispose();
        }