Skip to content

Commit

Permalink
Linux: Load Ozone EGL binaries from DIR_ASSETS (fixes issue chromiume…
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenblatt committed Nov 8, 2021
1 parent ad0b71a commit 23f5569
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patch/patches/linux_assets_path_1936.patch
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,25 @@ index 016046d6caa4f..116e4919cda08 100644
return false;

const char kGLESv2ANGLELibraryName[] = "libGLESv2.so";
diff --git ui/ozone/common/egl_util.cc ui/ozone/common/egl_util.cc
index e028d8cf8dec6..d172832589534 100644
--- ui/ozone/common/egl_util.cc
+++ ui/ozone/common/egl_util.cc
@@ -158,7 +158,7 @@ bool LoadDefaultEGLGLES2Bindings(
#if BUILDFLAG(ENABLE_SWIFTSHADER)
base::FilePath module_path;
#if !defined(OS_FUCHSIA)
- if (!base::PathService::Get(base::DIR_MODULE, &module_path))
+ if (!base::PathService::Get(base::DIR_ASSETS, &module_path))
return false;
module_path = module_path.Append(FILE_PATH_LITERAL("swiftshader/"));
#endif
@@ -171,7 +171,7 @@ bool LoadDefaultEGLGLES2Bindings(
} else if (implementation.gl == gl::kGLImplementationEGLANGLE) {
base::FilePath module_path;
#if !defined(OS_FUCHSIA)
- if (!base::PathService::Get(base::DIR_MODULE, &module_path))
+ if (!base::PathService::Get(base::DIR_ASSETS, &module_path))
return false;
#endif

0 comments on commit 23f5569

Please sign in to comment.