Esempio n. 1
0
        public void Dispose()
        {
            if (TextureID != 0)
            {
#if MEMORY_LOGGER
                MemoryLogger.DestroyTexture(TextureID, Size);
#endif

                Gl.DeleteTextures(1, new uint[] { TextureID });
                TextureID = 0;
            }
        }
Esempio n. 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (TextureID != 0)
            {
#if MEMORY_LOGGER
                MemoryLogger.DestroyTexture(TextureID, Size);
#endif

                Gl.DeleteTextures(1, new uint[] { TextureID });
                TextureID = 0;
            }
        }