From 742517582f29b1e8bbb05998c0722f2726f1545d Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Sun, 12 Feb 2012 14:28:04 +0200 Subject: [PATCH] Fix surface wrapper build when QT_COMPOSITOR_WAYLAND_GL is not set MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ic03d08ec936059344a1e092329a9def0b4ceb9ee Reviewed-by: Jørgen Lind --- src/compositor/wayland_wrapper/wlsurface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor/wayland_wrapper/wlsurface.cpp b/src/compositor/wayland_wrapper/wlsurface.cpp index 92acac0..d516e1d 100644 --- a/src/compositor/wayland_wrapper/wlsurface.cpp +++ b/src/compositor/wayland_wrapper/wlsurface.cpp @@ -429,11 +429,11 @@ WaylandSurface::Type Surface::type() const bool Surface::isYInverted() const { bool ret = false; + static bool negateReturn = qgetenv("QT_COMPOSITOR_NEGATE_INVERTED_Y").toInt(); + #ifdef QT_COMPOSITOR_WAYLAND_GL Q_D(const Surface); - static bool negateReturn = qgetenv("QT_COMPOSITOR_NEGATE_INVERTED_Y").toInt(); - if (!d->surfaceBuffer) { ret = false; } else if (d->compositor->graphicsHWIntegration() && d->surfaceBuffer->handle() && type() != WaylandSurface::Shm) { -- 2.7.4