Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Merge-request: 2
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
bool Surface::isYInverted() const
{
+#ifdef QT_COMPOSITOR_WAYLAND_GL
Q_D(const Surface);
+
if (d->type() == WaylandSurface::Texture) {
if (textureId()) {
return d->compositor->graphicsHWIntegration()->isYInverted(d->buffer());
} else if (d->type() == WaylandSurface::Direct) {
return d->compositor->graphicsHWIntegration()->isYInverted(d->buffer());
}
+#endif
//shm surfaces are not flipped (in our "world")
return false;
}