Merge pull request #1284 from erwincoumans/master

avoid flickering in visualizer window, when doing pybullet.getCameraI…
This commit is contained in:
erwincoumans
2017-08-29 13:28:21 -07:00
committed by GitHub

View File

@@ -1148,6 +1148,15 @@ void OpenGLGuiHelper::copyCameraImageData(const float viewMatrix[16], const floa
}
}
}
if (1)
{
getRenderInterface()->getActiveCamera()->disableVRCamera();
DrawGridData dg;
dg.upAxis = m_data->m_glApp->getUpAxis();
getRenderInterface()->updateCamera(dg.upAxis);
m_data->m_glApp->m_window->startRendering();
}
}
if (pixelsRGBA)
{