protected virtual void Dispose(bool disposing) { if (TextureID != 0) { #if MEMORY_LOGGER MemoryLogger.DestroyTexture(TextureID, Size); #endif Gl.DeleteTexture(TextureID); TextureID = 0; } }