summaryrefslogtreecommitdiff
path: root/opengl
diff options
context:
space:
mode:
author Yuxin Hu <yuxinhu@google.com> 2024-09-30 23:46:50 +0000
committer Yuxin Hu <yuxinhu@google.com> 2024-10-01 00:05:54 +0000
commit97ba154de202ea0eb5bf706ba89d6ce8d74aedc2 (patch)
tree1dbb4a248486cc72e65eef70c9776c174cbe9c4f /opengl
parentc4910bb721f760804da3d9254f2ef2fe4e4efcc8 (diff)
Add comment clarifying ANGLE libs loading behaviors
Flag: DOCS_ONLY Test: make Bug: b/370113081 Change-Id: I030002490a2658c8387fafad6cb8aaa67174082c
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/Loader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index bf0e38e986..3be8ddca10 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -599,6 +599,9 @@ Loader::driver_t* Loader::attempt_to_load_angle(egl_connection_t* cnx) {
driver_t* hnd = nullptr;
// ANGLE doesn't ship with GLES library, and thus we skip GLES driver.
+ // b/370113081: if there is no libEGL_angle.so in namespace ns, libEGL_angle.so in system
+ // partition will be loaded instead. If there is no libEGL_angle.so in system partition, no
+ // angle libs are loaded, and app that sets to use ANGLE will crash.
void* dso = load_angle("EGL", ns);
if (dso) {
initialize_api(dso, cnx, EGL);