From 5277a60f56c83376c1f2e9d9d502f1793d8c4857 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 20 Mar 2014 11:43:21 +0100 Subject: Clearly point out the distinction between GUI and Render threads. This is something it is easy to get wrong, so try to make it as visible as possible. Change-Id: I2253ae63214cef0fb91c8b9423d7918ffc20e888 Reviewed-by: Laszlo Agocs --- src/quick/scenegraph/util/qsgtexture.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/quick/scenegraph/util/qsgtexture.cpp') diff --git a/src/quick/scenegraph/util/qsgtexture.cpp b/src/quick/scenegraph/util/qsgtexture.cpp index d9e29f6ec0..ec563273a1 100644 --- a/src/quick/scenegraph/util/qsgtexture.cpp +++ b/src/quick/scenegraph/util/qsgtexture.cpp @@ -235,6 +235,9 @@ static void qt_debug_remove_texture(QSGTexture* texture) the function removedFromAtlas() can be used to extract a non-atlassed copy. + \note All classes with QSG prefix should be used solely on the scene graph's + rendering thread. See \l {Scene Graph and Rendering} for more information. + \sa {Scene Graph - Rendering FBOs}, {Scene Graph - Rendering FBOs in a thread} */ @@ -766,6 +769,9 @@ void QSGPlainTexture::bind() To update the content of the texture, call updateTexture() explicitly. Simply calling bind() will not update the texture. + + \note All classes with QSG prefix should be used solely on the scene graph's + rendering thread. See \l {Scene Graph and Rendering} for more information. */ -- cgit v1.2.3