private static void Window_Closed(object sender, EventArgs e) { SolidColorMeshShader.Release(); sphere.Dispose(); sphere = null; }