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,11 +1204,14 @@ void OpenGLExampleBrowser::updateGraphics()
void OpenGLExampleBrowser::update(float deltaTime)
{
if (!gEnableRenderLoop)
return;
b3ChromeUtilsEnableProfiling();
if (!gEnableRenderLoop)
{
sCurrentDemo->updateGraphics();
return;
}
B3_PROFILE("OpenGLExampleBrowser::update");
assert(glGetError()==GL_NO_ERROR);
s_instancingRenderer->init();

View File

@@ -91,7 +91,7 @@ void* PosixSharedMemory::allocateSharedMemory(int key, int size, bool allowCr
int id = shmget((key_t) key, (size_t) size,flags);
if (id < 0)
{
b3Error("shmget error");
b3Warning("shmget error");
} else
{
btPointerCaster result;