/// <summary> /// Unload Texture (ESImage class) /// </summary> public override void Dispose() { if (texture != null) { texture.Dispose(); } }
protected override void DoDisposing(EventArgs e) { base.DoDisposing(e); if (texture != null) { texture.Dispose(); } texture = null; }
public override void Dispose() { base.Dispose(); if (texture != null) { texture.Dispose(); } if (_textureId != 0) { GL.DeleteTextures(1, ref _textureId); } }