Fixed platform plugin for "nogl" building
authorPierre Vorhagen <pvorhagen@gmail.com>
Mon, 26 Mar 2012 09:46:55 +0000 (11:46 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 27 Mar 2012 06:32:58 +0000 (08:32 +0200)
Change-Id: Ib65990c6895ab32fda62703e6aec9afb39f6256c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/wayland/gl_integration/gl_integration.pri
src/plugins/platforms/wayland/qwaylandintegration.cpp

index 4db964c..d7e268a 100644 (file)
@@ -1,13 +1,14 @@
-contains(QT_CONFIG, opengl) {
+QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
+contains(QT_CONFIG, opengl):!equals(QT_WAYLAND_GL_CONFIG, nogl) {
+
     DEFINES += QT_WAYLAND_GL_SUPPORT
 
-HEADERS += \
-    $$PWD/qwaylandglintegration.h
+    HEADERS += \
+        $$PWD/qwaylandglintegration.h
 
-SOURCES += \
-    $$PWD/qwaylandglintegration.cpp
+    SOURCES += \
+        $$PWD/qwaylandglintegration.cpp
 
-    QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
     contains(QT_CONFIG, opengles2) {
         isEqual(QT_WAYLAND_GL_CONFIG, xcomposite_egl) {
             QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
index 821ade6..94cb86c 100644 (file)
@@ -124,8 +124,7 @@ QPlatformOpenGLContext *QWaylandIntegration::createPlatformOpenGLContext(QOpenGL
 #ifdef QT_WAYLAND_GL_SUPPORT
     return mDisplay->eglIntegration()->createPlatformOpenGLContext(context->format(), context->shareHandle());
 #else
-    Q_UNUSED(glFormat);
-    Q_UNUSED(share);
+    Q_UNUSED(context);
     return 0;
 #endif
 }