public void Destroy() { IBitmap bitmap = _bitmap; if (bitmap != null) { _bitmapPool.Release(bitmap); } //todo: uncomment and remove from our textures map //GL.DeleteTexture (texture); }
private void releaseBitmap(IBitmap bitmap) { if (bitmap == null) { return; } try { _bitmapPool.Release(bitmap); } catch (ArgumentException e) { Debug.WriteLine(e.ToString()); } }