aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-11-28 14:30:23 +0100
committerJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-11-28 16:02:39 +0100
commitfcf7b513d9e5b04213fbe5254f10af0f694ea8aa (patch)
tree616b512c9f0869db8b2a7cdfe6b5e90e13ce3043 /src/quick/scenegraph
parent79d86b269258024646ff4982a433c371601c125f (diff)
Warn about using QSGTexture::bind outside direct OpenGL path
Task-number: QTBUG-80364 Change-Id: I9281fb992bcb01d56714b491f313dd44a757d68a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r--src/quick/scenegraph/coreapi/qsgtexture.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgtexture.cpp b/src/quick/scenegraph/coreapi/qsgtexture.cpp
index dfbe4d3ffd..58b42e4094 100644
--- a/src/quick/scenegraph/coreapi/qsgtexture.cpp
+++ b/src/quick/scenegraph/coreapi/qsgtexture.cpp
@@ -395,6 +395,9 @@ QSGTexture::~QSGTexture()
Binding a texture may also include uploading the texture data from
a previously set QImage.
+ \warning This function should only be called when running with the
+ direct OpenGL rendering path.
+
\warning This function can only be called from the rendering thread.
*/