diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-02-27 12:16:29 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-02-28 09:37:51 +0000 |
commit | 7435d76820c746577f9a5a523ef5613536dc27e6 (patch) | |
tree | 9014e0bea30a15a6903fa21c80eb8a185823448c /examples | |
parent | c9dde7c309594c2e50cec53f438cc8a90e66a4d7 (diff) |
Solve some sizing issues with the offscreen example
Frames 2, 3, ... are now sized correctly. The first frame is still
incorrect in the sense that it renders at the presentation's size into
the FBO that is the application-provided size. Not clear what causes
that.
Task-number: QT3DS-1248
Change-Id: Idde9a72847f0996a8b58fb89d80eb3a67fed5ff2
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/3dstudioruntime2/simpleoffscreen/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/3dstudioruntime2/simpleoffscreen/main.cpp b/examples/3dstudioruntime2/simpleoffscreen/main.cpp index 3b77362..68ab00e 100644 --- a/examples/3dstudioruntime2/simpleoffscreen/main.cpp +++ b/examples/3dstudioruntime2/simpleoffscreen/main.cpp @@ -105,6 +105,9 @@ int main(int argc, char *argv[]) qDebug("Rendered and saved frame %d to %s", frame, qPrintable(fn)); + // Keep events delivered on this (main) thread. + QCoreApplication::processEvents(); + // ### hack until QT3DS-1041 is in place QThread::msleep(10); } |