Exemple #1
0
        public void Dispose()
        {
#if DRAW_SAMPLE_CONTENT
            if (videoRenderer != null)
            {
                videoRenderer.ReleaseDeviceDependentResources();
                videoRenderer.Dispose();
                videoRenderer = null;
            }
#endif
        }
Exemple #2
0
 /// <summary>
 /// Notifies renderers that device resources need to be released.
 /// </summary>
 public void OnDeviceLost(Object sender, EventArgs e)
 {
     Debug.WriteLine("VRPlayer.VRPlayerMain.OnDeviceLost");
     videoRenderer.ReleaseDeviceDependentResources();
 }