summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbintegration.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-02-06 11:48:46 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-12 13:02:14 +0100
commit3aacbc1e2bea0855f5a405be0e1577320af784f7 (patch)
tree9768009732ce2825d270a3c37fe1926a3196d179 /src/plugins/platforms/xcb/qxcbintegration.cpp
parentbc8a2de9d4d6ae642b38f03eca7bdc3b494bc8c9 (diff)
Compile without OpenGL.
Since a GLuint returning virtual was added to QPlatformOpenGLContext we need to make sure it's protected by #ifndef QT_NO_OPENGL. Change-Id: Id2f56ccdccc3863986250ee1b3aa7efccf88ba5c Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbintegration.cpp')
-rw-r--r--src/plugins/platforms/xcb/qxcbintegration.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbintegration.cpp b/src/plugins/platforms/xcb/qxcbintegration.cpp
index 0f7648a21b..c976e75dbf 100644
--- a/src/plugins/platforms/xcb/qxcbintegration.cpp
+++ b/src/plugins/platforms/xcb/qxcbintegration.cpp
@@ -171,6 +171,7 @@ private:
};
#endif
+#ifndef QT_NO_OPENGL
QPlatformOpenGLContext *QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext *context) const
{
QXcbScreen *screen = static_cast<QXcbScreen *>(context->screen()->handle());
@@ -185,6 +186,7 @@ QPlatformOpenGLContext *QXcbIntegration::createPlatformOpenGLContext(QOpenGLCont
qWarning("Cannot create platform GL context, none of GLX, EGL, DRI2 is enabled");
return 0;
}
+#endif
QPlatformBackingStore *QXcbIntegration::createPlatformBackingStore(QWindow *window) const
{