From fddc87063231f8f9aa22bbbc5bca4a46b9bbf004 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 3 Nov 2020 20:51:27 +0100 Subject: 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. --- gnu/packages/chromium.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gnu') 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")) -- cgit v1.2.3