summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-03-06 12:41:10 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-03-11 09:40:49 +0000
commitf29007b1d51bc6ab82a74e4841a904a51dc4ddce (patch)
tree5c6e555669c7a24b415ca67b15d347f49662a709 /src/gui/kernel
parentfdb7fa937a58900e3966adc765975785d0a9f0da (diff)
Gui: Fix compilation with QT_NO_OPENGL
Change-Id: I96674b39fd4176cf9d93b7ce00efa2b035128b61 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qplatformgraphicsbufferhelper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformgraphicsbufferhelper.cpp b/src/gui/kernel/qplatformgraphicsbufferhelper.cpp
index 7da95ffcec..2749b05691 100644
--- a/src/gui/kernel/qplatformgraphicsbufferhelper.cpp
+++ b/src/gui/kernel/qplatformgraphicsbufferhelper.cpp
@@ -112,6 +112,7 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe
bool *swizzleRandB,
const QRect &subRect)
{
+#ifndef QT_NO_OPENGL
if (!QOpenGLContext::currentContext())
return false;
@@ -172,6 +173,12 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe
return true;
+#else
+ Q_UNUSED(graphicsBuffer)
+ Q_UNUSED(swizzleRandB)
+ Q_UNUSED(subRect)
+ return false;
+#endif // QT_NO_OPENGL
}
QT_END_NAMESPACE