summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2020-11-03 20:51:27 +0100
committerMarius Bakke <marius@gnu.org>2020-11-05 02:20:24 +0100
commitfddc87063231f8f9aa22bbbc5bca4a46b9bbf004 (patch)
tree623679223b96aeac6d82164bf8ecc87eae10de6a
parent81dfd459e3a3d1b8c4a3de61fd9b677fefde8f36 (diff)
downloadguix-fddc87063231f8f9aa22bbbc5bca4a46b9bbf004.tar.gz
gnu: ungoogled-chromium: Fix hardware acceleration.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Patch in absolute
file name of libGL.so, and install Chromiums own libEGL.so and libGLESv2.so.
-rw-r--r--gnu/packages/chromium.scm13
1 files changed, 9 insertions, 4 deletions
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 6db791aa17..5c7bb12def 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -615,9 +615,11 @@
                  (("libudev\\.so\\.1")
                   (string-append udev "/lib/libudev.so.1")))
 
-               (substitute* '("ui/ozone/platform/x11/gl_ozone_glx.cc"
-                              "ui/ozone/common/egl_util.cc"
-                              "ui/gl/init/gl_initializer_linux_x11.cc")
+               (substitute*
+                   '("ui/ozone/platform/x11/gl_ozone_glx.cc"
+                     "ui/ozone/common/egl_util.cc"
+                     "ui/gl/init/gl_initializer_linux_x11.cc"
+                     "third_party/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp")
                  (("libGL\\.so\\.1")
                   (string-append mesa "/lib/libGL.so.1"))
                  (("libEGL\\.so\\.1")
@@ -712,7 +714,10 @@
                     (libs           '("chrome_100_percent.pak"
                                       "chrome_200_percent.pak"
                                       "resources.pak"
-                                      "v8_context_snapshot.bin"))
+                                      "v8_context_snapshot.bin"
+                                      ;; Chromium ships its own libGL
+                                      ;; implementation called ANGLE.
+                                      "libEGL.so" "libGLESv2.so"))
                     (locales        (string-append lib "/locales"))
                     (resources      (string-append lib "/resources"))
                     (preferences    (assoc-ref inputs "master-preferences"))