Commit f29007b1 authored by Kai Koehne's avatar Kai Koehne Committed by Laszlo Agocs
Browse files

Gui: Fix compilation with QT_NO_OPENGL


Change-Id: I96674b39fd4176cf9d93b7ce00efa2b035128b61
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@theqtcompany.com>
parent fdb7fa93
Branches
Tags
No related merge requests found
Showing with 7 additions and 0 deletions
...@@ -112,6 +112,7 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe ...@@ -112,6 +112,7 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe
bool *swizzleRandB, bool *swizzleRandB,
const QRect &subRect) const QRect &subRect)
{ {
#ifndef QT_NO_OPENGL
if (!QOpenGLContext::currentContext()) if (!QOpenGLContext::currentContext())
return false; return false;
...@@ -172,6 +173,12 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe ...@@ -172,6 +173,12 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe
return true; return true;
#else
Q_UNUSED(graphicsBuffer)
Q_UNUSED(swizzleRandB)
Q_UNUSED(subRect)
return false;
#endif // QT_NO_OPENGL
} }
QT_END_NAMESPACE QT_END_NAMESPACE
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment