qt5-wayland-libglvnd-egl.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. From c2105d8b7e16cc934b886537968228f6300bf4bc Mon Sep 17 00:00:00 2001
  2. From: Johan Klokkhammer Helsing <johan.helsing@qt.io>
  3. Date: Fri, 8 Nov 2019 13:58:04 +0100
  4. Subject: Fix compilation of linuxdmabuf compositor plugin
  5. Mesa's eglext.h no longer includes eglmesaext.h, so copy over the typedefs we need.
  6. Fixes: QTBUG-79709
  7. Change-Id: I3190ef56e0e162636efea440dff7e760cf11fcd0
  8. Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
  9. ---
  10. .../compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h | 4 ++++
  11. 1 file changed, 4 insertions(+)
  12. diff --git a/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h b/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h
  13. index 8554721e..02b5b6f8 100644
  14. --- a/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h
  15. +++ b/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h
  16. @@ -58,6 +58,10 @@
  17. #define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED)
  18. #endif
  19. +// Copied from eglmesaext.h
  20. +typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
  21. +typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
  22. +
  23. QT_BEGIN_NAMESPACE
  24. class QWaylandCompositor;
  25. --
  26. cgit v1.2.1