Gui: Fix compilation with QT_NO_OPENGL

Change-Id: I96674b39fd4176cf9d93b7ce00efa2b035128b61
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Kai Koehne 2015-03-06 12:41:10 +01:00 committed by Laszlo Agocs
parent fdb7fa937a
commit f29007b1d5

View File

@ -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