public void Dispose() { if (Handle != 0) { GL.DeleteTexture(Handle); _parent.DecrementViewsCount(); Handle = 0; } }
public void Dispose() { if (_incompatibleFormatView != null) { _incompatibleFormatView.Dispose(); _incompatibleFormatView = null; } if (Handle != 0) { GL.DeleteTexture(Handle); _parent.DecrementViewsCount(); Handle = 0; } }