Пример #1
0
        public void Destroy()
        {
            IBitmap bitmap = _bitmap;

            if (bitmap != null)
            {
                _bitmapPool.Release(bitmap);
            }
            //todo: uncomment and remove from our textures map
            //GL.DeleteTexture (texture);
        }
Пример #2
0
 private void releaseBitmap(IBitmap bitmap)
 {
     if (bitmap == null)
     {
         return;
     }
     try
     {
         _bitmapPool.Release(bitmap);
     }
     catch (ArgumentException e)
     {
         Debug.WriteLine(e.ToString());
     }
 }