logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

libdecor-0.1.0_opengl_link.patch (1106B)


  1. From 3479c0afaf01be05c28746ec4557055c1668ee88 Mon Sep 17 00:00:00 2001
  2. From: Christian Rauch <Rauch.Christian@gmx.de>
  3. Date: Mon, 9 Aug 2021 00:16:02 +0100
  4. Subject: [PATCH] egl: link against libOpenGL and not libGL
  5. On modern Linux, GLVND provides a way to separate the pure OpenGL functions
  6. (gl*) from the GLX/EGL context creation (glX*/egl*). This requires to link
  7. OpenGL and EGL separately. Previously, we would simply link against libGL,
  8. which includes OpenGL and GLX symbols. This in turn links against libX11,
  9. which is not desired for a pure Wayland client.
  10. By replacing libGL with libOpenGL, we prevent linking GLX.
  11. ---
  12. demo/meson.build | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/demo/meson.build b/demo/meson.build
  15. index 819aeda..0cadb3f 100644
  16. --- a/demo/meson.build
  17. +++ b/demo/meson.build
  18. @@ -5,7 +5,7 @@ wayland_cursor_dep = dependency('wayland-cursor')
  19. math_dep = cc.find_library('m')
  20. egl_dep = dependency('egl')
  21. -gl_dep = dependency('gl')
  22. +gl_dep = dependency('opengl')
  23. wayland_egl_dep = dependency('wayland-egl')
  24. xkb_dep = dependency('xkbcommon')
  25. --
  26. GitLab