examples/qwidget-compositor: don't use GL if disabled
authorCorentin Chary <corentin.chary@gmail.com>
Thu, 19 May 2011 08:14:25 +0000 (10:14 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Thu, 19 May 2011 08:14:25 +0000 (10:14 +0200)
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Merge-request: 2
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
examples/qwidget-compositor/main.cpp

index 861139b..0f825c5 100644 (file)
@@ -70,9 +70,11 @@ public:
         //make sure we get the window id and create the glcontext
         //so that clients can successfully initialize egl
         winId();
+#ifdef QT_COMPOSITOR_WAYLAND_GL
         if (platformWindow()) {
             platformWindow()->glContext();
         }
+#endif
     }
 
 private slots: