From: Corentin Chary Date: Thu, 19 May 2011 08:14:25 +0000 (+0200) Subject: examples/qwidget-compositor: don't use GL if disabled X-Git-Tag: qt-v5.0.0-alpha1~276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=552e7ce7488096b91e26c49e56de76c02f42cf0e;p=profile%2Fivi%2Fqtwayland.git examples/qwidget-compositor: don't use GL if disabled Signed-off-by: Corentin Chary Merge-request: 2 Reviewed-by: Samuel Rødal --- diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp index 861139b..0f825c5 100644 --- a/examples/qwidget-compositor/main.cpp +++ b/examples/qwidget-compositor/main.cpp @@ -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: