public void IsDisposed_ShouldReturnTrue_When_AlreadyDisposed()
        {
            var glTexture = new GlTexture();

            glTexture.Dispose();

            Assert.True(glTexture.isDisposed);
        }
 public static void DisposeIfNotCommon(GlTexture texture)
 {
     if (texture != NULL_WHITE_TEXTURE &&
         texture != NULL_GRAY_TEXTURE &&
         texture != NULL_BLACK_TEXTURE)
     {
         texture.Dispose();
     }
 }
예제 #3
0
 /// <summary>
 /// Disposable implementation to free the GL Texture representing the Character once it is no longer needed.
 /// </summary>
 public void Dispose()
 {
     GlTexture?.Dispose();
 }