internal static void Dispose() { _font = null; _fontSmall = null; _uiTextureRegionAtlas = null; _uiStylesheet = null; Stylesheet.Current = null; _assetManager.ClearCache(); _whiteRegion = null; if (_white != null) { _white.Dispose(); _white = null; } #if !XENKO if (_uiRasterizerState != null) { _uiRasterizerState.Dispose(); _uiRasterizerState = null; } #endif }
internal static void Dispose() { _font = null; _fontSmall = null; _uiSpritesheet = null; _uiStylesheet = null; Stylesheet.Current = null; _whiteRegion = null; if (_white != null) { _white.Dispose(); _white = null; } if (_uiBitmap != null) { _uiBitmap.Dispose(); _uiBitmap = null; } #if !XENKO if (_uiRasterizerState != null) { _uiRasterizerState.Dispose(); _uiRasterizerState = null; } #endif }