fix with shared memory connection while disabling rendering

This commit is contained in:
Erwin Coumans
2017-09-11 09:30:39 -07:00
parent f38b2cf14d
commit 416c29daf7
2 changed files with 7 additions and 4 deletions

View File

@@ -1204,10 +1204,13 @@ void OpenGLExampleBrowser::updateGraphics()
void OpenGLExampleBrowser::update(float deltaTime)
{
if (!gEnableRenderLoop)
return;
b3ChromeUtilsEnableProfiling();
b3ChromeUtilsEnableProfiling();
if (!gEnableRenderLoop)
{
sCurrentDemo->updateGraphics();
return;
}
B3_PROFILE("OpenGLExampleBrowser::update");
assert(glGetError()==GL_NO_ERROR);