Render enough frames to flush the Qt3D pipeline when dirty


Sometimes Qt3D needs 2 frames if it involves introspecting and then
compiling shaders. So render at least this many frames when needed.

The change in formatting is pushed upon us by the clang-format use
in the pre-commit hook.

Pick-to: 5.15
Change-Id: Ie9f48876351a8d1a7bd0df705a9e43831753ac69
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commitc2f6cfd0e4c382045a3391dd20809d9bd3b04311
parentb87b0cc89ffee4ffc01a714e705caf8e247bd233
authorSean Harmer <sean.harmer@kdab.com>
committerSean Harmer <sean.harmer@kdab.com>
commit timeWed, 21 Oct 2020 15:22:53 +0100