Ejemplo n.º 1
0
 /// <summary>
 /// Removes a texture from the cache.
 /// </summary>
 /// <remarks>
 /// This only removes the texture from the internal list, not from the auto-deletion cache.
 /// It may still have live references after the removal.
 /// </remarks>
 /// <param name="texture">The texture to be removed</param>
 public void RemoveTextureFromCache(Texture texture)
 {
     lock (_textures)
     {
         _textures.Remove(texture);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Removes a texture from the cache.
        /// </summary>
        /// <remarks>
        /// This only removes the texture from the internal list, not from the auto-deletion cache.
        /// It may still have live references after the removal.
        /// </remarks>
        /// <param name="texture">The texture to be removed</param>
        public void RemoveTextureFromCache(Texture texture)
        {
            lock (_textures)
            {
                _textures.Remove(texture);
            }

            lock (_partiallyMappedTextures)
            {
                _partiallyMappedTextures.Remove(texture);
            }
        }