diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-02-06 16:40:55 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-06 20:16:20 +0100 |
commit | 6f6fe27cf48ddcc98deb3c5d9b65a9a00a90bf02 (patch) | |
tree | 8ec57b20bd1c95a4b2d4ce8ce35041855c905da8 /src | |
parent | 56db0a314ec66655cb56a4690775c58527288342 (diff) |
Warnings in the before/afterRender docs
Change-Id: I2311e574b45d518893ef868fdcf51053dc43bb13
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquickcanvas.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp index 72300f9ce5..660d7df77e 100644 --- a/src/quick/items/qquickcanvas.cpp +++ b/src/quick/items/qquickcanvas.cpp @@ -1891,9 +1891,12 @@ QDeclarativeIncubationController *QQuickCanvas::incubationController() const The GL context used for rendering the scene graph will be bound at this point. - Since this signal is emitted from the scene graph rendering thread, the receiver should - be on the scene graph thread or the connection should be Qt::DirectConnection. + \warning Since this signal is emitted from the scene graph rendering thread, the + receiver should be on the scene graph thread or the connection should be Qt::DirectConnection. + \warning Make very sure that a signal handler for beforeRendering leaves the GL + context in the same state as it was when the signal handler was entered. Failing to + do so can result in the scene not rendering properly. */ /*! @@ -1906,8 +1909,12 @@ QDeclarativeIncubationController *QQuickCanvas::incubationController() const The GL context used for rendering the scene graph will be bound at this point. - Since this signal is emitted from the scene graph rendering thread, the receiver should - be on the scene graph thread or the connection should be Qt::DirectConnection. + \warning Since this signal is emitted from the scene graph rendering thread, the + receiver should be on the scene graph thread or the connection should be Qt::DirectConnection. + + \warning Make very sure that a signal handler for afterRendering() leaves the GL + context in the same state as it was when the signal handler was entered. Failing to + do so can result in the scene not rendering properly. */ |