don't use GL_LINEAR_MIPMAP_LINEAR for shadow maps

optimize gpu upload (use glBufferSubData instead of glMapBuffer
Avoid checking char array against zero.
This commit is contained in:
erwin coumans
2016-10-14 15:06:09 -07:00
parent 4ebc327151
commit 29f3afe2a4
23 changed files with 616 additions and 83 deletions

View File

@@ -446,9 +446,15 @@ struct CommonRigidBodyBase : public CommonExampleInterface
virtual void renderScene()
{
m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld);
{
m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld);
}
m_guiHelper->render(m_dynamicsWorld);
{
m_guiHelper->render(m_dynamicsWorld);
}
}
};