diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-02-12 14:28:04 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2012-02-13 14:47:15 +0100 |
commit | 742517582f29b1e8bbb05998c0722f2726f1545d (patch) | |
tree | 7b4bd1ce3d943a91fd9635740e508d2ca3b35839 /src | |
parent | 962991d9228ebcd7ec986bc0dac447810c6303db (diff) |
Fix surface wrapper build when QT_COMPOSITOR_WAYLAND_GL is not set
Change-Id: Ic03d08ec936059344a1e092329a9def0b4ceb9ee
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor/wayland_wrapper/wlsurface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.cpp b/src/compositor/wayland_wrapper/wlsurface.cpp index 92acac0c2..d516e1db5 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) { |