summaryrefslogtreecommitdiff
path: root/opengl
diff options
context:
space:
mode:
author Rob VanReenen <quic_rvanreen@quicinc.com> 2024-08-01 12:02:58 -0700
committer Rob VanReenen <quic_rvanreen@quicinc.com> 2024-08-01 12:26:43 -0700
commit45ccd13dd68b5be72440cbcadb3c5bbe7f71ba4d (patch)
tree902aa0e26f0f66c17ab908c8be29bd057badc857 /opengl
parent9d04fe2c66aff0fea66657f397827ed334ea3b7d (diff)
Fix updatable driver loading issue with EGL.
getDriverNamespace() returns non-NULL if an updatable driver is intended to be used. Need to throw error only if attempt_to_load_updated_driver() failed. Bug: 349287141 Change-Id: I4310618c7a031a0c471aea5a6ab00362acff0983
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/Loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index af0bcffc1f..3297fe037e 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -262,7 +262,7 @@ void* Loader::open(egl_connection_t* cnx) {
hnd = attempt_to_load_updated_driver(cnx);
// If updated driver apk is set but fail to load, abort here.
- LOG_ALWAYS_FATAL_IF(android::GraphicsEnv::getInstance().getDriverNamespace(),
+ LOG_ALWAYS_FATAL_IF(android::GraphicsEnv::getInstance().getDriverNamespace() && !hnd,
"couldn't find an OpenGL ES implementation from %s",
android::GraphicsEnv::getInstance().getDriverPath().c_str());
}