Beispiel #1
0
			protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
			{
				base.OnClosing(e);

				OvrDLL.ovr_DestroyTextureSwapChain(session, eyes[0].swapChain);
				OvrDLL.ovr_DestroyTextureSwapChain(session, eyes[1].swapChain);
				OvrDLL.ovr_DestroyMirrorTexture(session, mirror);
				OvrDLL.ovr_Destroy(session);
				OvrDLL.ovr_Shutdown();
			}