diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-11-28 14:30:23 +0100 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-11-28 16:02:39 +0100 |
commit | fcf7b513d9e5b04213fbe5254f10af0f694ea8aa (patch) | |
tree | 616b512c9f0869db8b2a7cdfe6b5e90e13ce3043 /src/quick/scenegraph | |
parent | 79d86b269258024646ff4982a433c371601c125f (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.cpp | 3 |
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. */ |