fix issues with VR physics server

This commit is contained in:
erwin coumans
2016-09-09 11:28:38 -07:00
parent 016dc273c6
commit f72982306e
3 changed files with 69 additions and 37 deletions

View File

@@ -625,6 +625,9 @@ void CMainApplication::Shutdown()
}
}
sExample->exitPhysics();
delete sExample;
delete m_app;
m_app=0;
@@ -752,13 +755,11 @@ bool CMainApplication::HandleInput()
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CMainApplication::RunMainLoop()
{
bool bQuit = false;
//SDL_StartTextInput();
//SDL_ShowCursor( SDL_DISABLE );
while ( !bQuit && !m_app->m_window->requestedExit())
{
bQuit = HandleInput();
@@ -766,7 +767,6 @@ void CMainApplication::RunMainLoop()
RenderFrame();
}
//SDL_StopTextInput();
}