private static StyleDuo GetStyleDuo(ref StyleDuo style, ColorDuo cd) { // it seems that re-creating the textures if they've been destroyed will still cause some strange leaks // so I just re-create the whole style if the textures are destroyed if (style == null || style.TexturesHaveBeenDestroyed) { style = new StyleDuo(cd); } return(style); }
private static StyleDuo GetStyleDuo(ref StyleDuo style, ColorDuo cd) { // it seems that re-creating the textures if they've been destroyed will still cause some strange leaks // so I just re-create the whole style if the textures are destroyed if (style == null || style.TexturesHaveBeenDestroyed) style = new StyleDuo(cd); return style; }