Skip to content
Snippets Groups Projects
Commit 74251758 authored by Laszlo Agocs's avatar Laszlo Agocs Committed by Jørgen Lind
Browse files

Fix surface wrapper build when QT_COMPOSITOR_WAYLAND_GL is not set


Change-Id: Ic03d08ec936059344a1e092329a9def0b4ceb9ee
Reviewed-by: default avatarJørgen Lind <jorgen.lind@nokia.com>
parent 962991d9
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment