Skip to content

Commit 45ccd13

Browse files
author
Rob VanReenen
committed
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
1 parent 9d04fe2 commit 45ccd13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opengl/libs/EGL/Loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void* Loader::open(egl_connection_t* cnx) {
262262
hnd = attempt_to_load_updated_driver(cnx);
263263

264264
// If updated driver apk is set but fail to load, abort here.
265-
LOG_ALWAYS_FATAL_IF(android::GraphicsEnv::getInstance().getDriverNamespace(),
265+
LOG_ALWAYS_FATAL_IF(android::GraphicsEnv::getInstance().getDriverNamespace() && !hnd,
266266
"couldn't find an OpenGL ES implementation from %s",
267267
android::GraphicsEnv::getInstance().getDriverPath().c_str());
268268
}

0 commit comments

Comments
 (0)