Just return 0, so that compositors don't have to be rewritten when the
backend only supports SHM surfaces.
Q_D(const WaylandSurface);
return d->surface->textureId();
}
-#endif //QT_COMPOSITOR_WAYLAND_GL
+#else //QT_COMPOSITOR_WAYLAND_GL
+uint WaylandSurface::texture() const
+{
+ return 0;
+}
+
+#endif
Wayland::Surface * WaylandSurface::handle() const
{
QImage image() const;
#ifdef QT_COMPOSITOR_WAYLAND_GL
GLuint texture() const;
+#else
+ uint texture() const;
#endif
void sendMousePressEvent(const QPoint &pos, Qt::MouseButton button);