diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-12-07 15:25:29 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-12-07 15:56:30 +0100 |
commit | 1febf3da07919d48c704b8fdf9dbf654fbcb8a34 (patch) | |
tree | d1c55aea0ff21144685005f74dd2426603615871 /src/quick/scenegraph | |
parent | 61a5860599cb2bf770ea3150f8a993d3b08b840a (diff) |
QSGTexture: fix unused warning
If the opengl feature is disabled, t is not used. This caused build
failures due to -Werror=unused-parameter
Change-Id: Ic39703dfb540d15295811484ad3793b639dc6b9c
Reviewed-by: Alexandru Croitor <alexandru.croitor@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 94c25a5fc7..898f8cbe33 100644 --- a/src/quick/scenegraph/coreapi/qsgtexture.cpp +++ b/src/quick/scenegraph/coreapi/qsgtexture.cpp @@ -126,6 +126,9 @@ QSGTexturePrivate::QSGTexturePrivate(QSGTexture *t) , m_vulkanTextureAccessor(t) #endif { +#if !QT_CONFIG(opengl) + Q_UNUSED(t); +#endif } #ifndef QT_NO_DEBUG |