Fix surface wrapper build when QT_COMPOSITOR_WAYLAND_GL is not set
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Sun, 12 Feb 2012 12:28:04 +0000 (14:28 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 13 Feb 2012 13:47:15 +0000 (14:47 +0100)
Change-Id: Ic03d08ec936059344a1e092329a9def0b4ceb9ee
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/compositor/wayland_wrapper/wlsurface.cpp

index 92acac0..d516e1d 100644 (file)
@@ -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) {